Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text, with full Unicode support. Runs locally — safe for tokens and secrets.
How to use the Base64 Encoder / Decoder
- Choose Encode or Decode.
- Paste your text (or Base64 string) into the input box.
- The result appears instantly as you type.
- Click Copy to grab the output.
About this tool
Base64 turns arbitrary bytes into plain ASCII text, which is why it shows up everywhere binary data has to travel through text-only channels: HTTP basic auth headers, JWT segments, data URIs, email attachments and XML or JSON payloads.
This tool encodes and decodes with full Unicode support. Many naive implementations break on emoji or accented characters because they skip the UTF-8 step; here every string is converted through UTF-8 first, so any text round-trips losslessly.
Everything runs locally in your browser — a genuine advantage for this tool in particular, since Base64 strings so often contain credentials and tokens that should never be pasted into a random website’s server logs.
Frequently asked questions
- Does it support emoji and non-Latin characters?
- Yes. Text is converted through UTF-8 before encoding, so emoji, Chinese, Arabic and accented characters round-trip correctly.
- Is Base64 encryption?
- No. Base64 is an encoding, not encryption — anyone can decode it. Never rely on Base64 to protect sensitive data.
- Why does decoding fail with an error?
- The input probably is not valid Base64 — check for missing padding (=), stray whitespace, or characters outside A–Z, a–z, 0–9, + and /.
- Is it safe to paste API keys here?
- Encoding happens entirely in your browser; nothing is sent to any server. Still, treat secrets with care anywhere you paste them.
Related tools
URL Encoder / Decoder
Percent-encode text for safe use in URLs, or decode an encoded URL back to readable text. Instant, free and fully in-browser.
JSON Formatter & Validator
Format, validate and minify JSON instantly in your browser. Clear error messages with line hints — your data is never uploaded.
UUID Generator
Generate one or many random version-4 UUIDs using your browser’s cryptographic random source. Copy individually or all at once.
Age Calculator
Work out an exact age in years, months and days from a date of birth, plus total days lived and a countdown to the next birthday.