Base64 encoding/decoding
Local encoding and decoding between the UTF-8 text and Base64 string.
Local browser processing
This page has passed the public directory check; full functionality is available after enabling JavaScript.
User Guide
How to use Base64 encoding/decoding
Local browser processing
Example
Text
café 😀Result
Y2Fmw6kg8J+YgA==Encode
Paste text and choose Encode. You can paste the example result back, choose Decode, and compare it with the original.
Limitations and Notes
- Base64 is reversible encoding, not encryption; it does not hide the original text.
- This page restores valid UTF-8 text only; it does not output images or other binary files.
FAQ
Why does Base64 decoding report a UTF-8 error?
Base64 can represent arbitrary bytes, but this page outputs text only. Confirm the data was originally UTF-8 text rather than an image, archive, or another file. Base64 and image conversion
What if copied Base64 contains spaces or line breaks?
This page removes spaces and line breaks before decoding, then restores UTF-8 text.