Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to text, with full Unicode support. Free and private, right in your browser.
Paste in plain text to get its Base64 representation, or paste Base64 to decode it back to readable text - handy for reading API tokens, debugging JWT payloads, inspecting data URIs, or prepping strings for embedding in JSON, URLs, or config files.
How to use it
- Paste your text or Base64 string into the input box
- Choose Encode or Decode
- Copy the result to your clipboard
Frequently asked questions
- What flavor of Base64 does this use?
- Standard Base64 (RFC 4648) with + and / characters and = padding. If you need URL-safe Base64 (- and _ instead), swap the characters after encoding.
- Can I encode images or files, not just text?
- This tool is built for text input and output. For a file, open it in a text/hex editor to copy the raw bytes as text first, or use a dedicated file-to-Base64 converter.
- Why does decoding fail with an error?
- The input isn't valid Base64 - it likely has extra whitespace, line breaks, or characters outside A-Z, a-z, 0-9, +, /, and = padding. Strip any surrounding text and try again.
- 1
Nothing is uploaded
The file never leaves your device. There is no server to send it to, so there is nothing to leak, log, or subpoena.
- 2
No signup, no limits
No account, no email, no daily cap, no watermark, and no paid tier waiting behind the third file.
- 3
Works offline
Load the page once and it keeps working with the network off, because all the work was always happening locally.