Base64 Encoder & Decoder
Encode and decode Base64 free online.
How to use this tool
Pick a direction
Encode text to Base64, or decode Base64 back to text.
Paste & convert
Type or paste your input and hit the big button.
Copy the result
One-click copy, or download as a .txt file.
Frequently asked questions
Is the encoding UTF-8 safe?
Yes. Unlike naive btoa() snippets, this tool encodes through UTF-8 bytes first, so emoji and non-English text round-trip correctly.
What is Base64 used for?
Embedding images in CSS/HTML (data URLs), encoding binary data in JSON, and basic auth headers — anywhere text-only channels need to carry binary data.
Is my text uploaded anywhere?
No. Encoding and decoding happen entirely in your browser. Nothing you type ever leaves your device.
Why does decoding fail?
Usually truncated input, line breaks in the wrong place, or characters outside the Base64 alphabet. The tool validates strictly and tells you plainly.
Is Base64 encryption?
No — it's just an encoding, trivially reversible. Never use it to hide secrets or passwords.
