Developer tools
Base64 text encoder and decoder
Encode UTF-8 text using standard Base64 or unpadded URL-safe Base64. For decoding select the matching alphabet. ASCII whitespace and omitted padding are accepted; invalid padding, noncanonical bits and invalid UTF-8 are rejected. This tool handles text, not arbitrary binary files. Base64 is not encryption and offers no secrecy.
Paste text, choose options and calculate. Up to 20,000 UTF-16 code units (an emoji can use more than one). Empty input is allowed except for naming conversion.
Result
Method:
Processing stays in this browser tab. Input is not sent, saved in browser storage or added to the URL. The original TXT download contains the result. The additional JSON export contains the input, selected options and exact result. Copy may require permission; selecting text is available as a fallback. Changing an input clears the previous result. Optional own UTF-8 file up to 32 KiB and 20000 UTF-16 units; raw file and form line endings are recorded separately. CSV protects formula-like lines with an apostrophe; printable HTML refuses unsupported control characters. Optional live calculation is off by default.
How it works
Encode UTF-8 text using standard Base64 or unpadded URL-safe Base64. For decoding select the matching alphabet. ASCII whitespace and omitted padding are accepted; invalid padding, noncanonical bits and invalid UTF-8 are rejected. This tool handles text, not arbitrary binary files. Base64 is not encryption and offers no secrecy. Shared own file and JSON/numbered-line CSV/printable HTML exports record the unchanged calculation result and actual selected options. Processing stays in this browser tab. Input is not sent, saved in browser storage or added to the URL. The original TXT download contains the result. The additional JSON export contains the input, selected options and exact result. Copy may require permission; selecting text is available as a fallback. Changing an input clears the previous result. Optional own UTF-8 file up to 32 KiB and 20000 UTF-16 units; raw file and form line endings are recorded separately. CSV protects formula-like lines with an apostrophe; printable HTML refuses unsupported control characters. Optional live calculation is off by default.
Worked example
Example input: Hello 🌍
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Input text
- Own sample 🚀
- Operation
- Encode
- Variant
- Standard Base64
Result
- Result
- Unicode code points: 20
Frequently asked questions
Which Base64 variants can I use?
The Base64 text encoder supports standard Base64 and unpadded URL-safe Base64 for UTF-8 text. For decoding, select the matching alphabet.
Why does Base64 decoding fail?
Invalid padding, noncanonical bits and invalid UTF-8 are rejected. ASCII whitespace and omitted padding are accepted.
Can I encode binary files to Base64 with this tool?
No. The Base64 text codec handles text, not arbitrary binary files. An own UTF-8 text file up to 32 KiB can be loaded.
Is Base64 encryption?
No. Base64 is not encryption and offers no secrecy.
How much text can the Base64 encoder handle?
Up to 20,000 UTF-16 code units; an emoji can use more than one unit.
Which files can I download from the Base64 codec?
You can download the result as TXT, exact result JSON with input and options, a numbered line CSV and a printable HTML file.