Base64
Encode or decode text to and from Base64.
How it works
UTF-8 aware, so Chinese and emoji round-trip correctly.
Worked example with the defaults
This example is calculated from the page defaults. Change the form to update the live result.
| Text | Hello, world! |
|---|---|
| Mode | Encode |
| Calculated result | — · Invalid input |
Text-encoding limits
Text is encoded as UTF-8 and standard Base64; decoding validates UTF-8 strictly.
Limits and assumptions
- Base64 is encoding, not encryption; anyone with the string can decode it.
- This handles UTF-8 text, not arbitrary binary files or URL-safe Base64 variants.
- Inputs are processed in the browser; very large strings still consume device memory.
Common questions
Does Base64 protect private data?
No. It has no key and is reversible text encoding.
Why can decoding fail?
The input may contain invalid Base64 characters or bytes that are not UTF-8 text.