How to use this tool
- Paste text or Base64 into the input box.
- Choose encode or decode and toggle URL-safe output if needed.
- Copy the output, or convert a small local file to Base64.
Encode UTF-8 text to Base64, decode Base64 back to readable text, switch to URL-safe output, and convert small local files without uploading content.
Use this Base64 encoder and decoder for UTF-8 strings, URL-safe payloads, JWT-style segments, and small local files.
hello world into aGVsbG8gd29ybGQ=.café without losing characters.hello world.aGVsbG8gd29ybGQ=.+ and /, and trims padding when needed.| Case | What to check |
|---|---|
| URL-safe Base64 | Uses - and _ instead of + and /. |
| Missing padding | Some systems omit trailing =; this tool pads before decoding. |
| Binary files | File conversion can output Base64, but decode-to-text only works for valid UTF-8. |
Useful browser-local tools for data encoding and developer fixtures.
Notes about Base64, URL-safe output, and local processing.
No. Text and file conversion run locally in your browser.
Yes. It uses browser UTF-8 APIs so characters outside ASCII can be encoded and decoded.
It uses hyphen and underscore instead of plus and slash, which is safer in URL contexts.
Decode fails when the input is not valid Base64 or does not decode to valid UTF-8 text.