Encoding & Hashing
Base64 Encode / Decode
Encode text to Base64 or decode it back, with full UTF-8 and emoji support plus an optional URL-safe alphabet.
- Input
- fmtText
- Output
- TEXT
- Runs
- Your browser
shortAnswer
ToolBoxAll's Base64 tool encodes and decodes text with full UTF-8 support, so Chinese characters, accents and emoji round-trip without corruption — a failure mode of plain btoa. An optional URL-safe alphabet swaps +/ for -_ and drops padding for use in query strings and JWTs.
- keyFact
- UTF-8 safe: Chinese and emoji survive
- keyFact
- URL-safe mode removes padding and swaps +/ for -_
- keyFact
- Decoding validates the Base64 alphabet
reviewedOn 2026-11-20
Output
Output appears here as you run the tool.
Tip: this tool runs entirely in your browser — your input never leaves the device.
How it works
three steps- 01
Choose encode or decode.
- 02
Paste the text; UTF-8 and emoji are handled automatically.
- 03
Copy the result or download it as a .txt file.
About this tool
Most online converters break on Chinese text because btoa only handles Latin-1. This one encodes through TextEncoder first, so 中文, accents and emoji round-trip intact. URL-safe mode swaps +/ for -_ and drops padding.
| Input | fmtText |
|---|---|
| Output | TEXT |
| Batch | One at a time |
| Per-file limit | — |
| Processing | Your browser |
| Account | Not required |