Base64 encode and decode
Convert text to Base64 and back, with full Unicode support, in your browser.
- Runs in your browser
- Nothing uploaded
- Works offline
- No sign-up
About this tool
Switch between "text to Base64", "Base64 to text", or "file to Base64" to get a ready-to-use data URI for any file. Unicode is handled correctly in text mode (emoji and accented characters included). Everything runs locally - nothing is sent to a server - so it is safe for snippets or files you would not want to paste into a random website.
How to use it
- Choose a mode: encode text, decode text, or convert a file.
- Paste your input, or choose a file for file mode.
- The converted result appears in the output box.
- Click "Copy output" to grab it.
Frequently asked questions
Does it handle emoji and accents?
Yes. Encoding uses a UTF-8-safe path, so any Unicode text round-trips correctly.
What happens with invalid Base64 on decode?
You get an "(invalid Base64 input)" message instead of a crash - check for stray characters or missing padding.
Is my data uploaded?
No. The conversion is done entirely in your browser.
What is a data URI used for?
A data URI embeds a small file (an icon, a font, a tiny image) directly inside HTML or CSS instead of a separate request - useful for small assets or quick prototyping.
