Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to text, right in your browser.
Base64 turns any text or data into a plain-text string that travels safely through systems built for text — email, JSON, data URLs. Base64 Encode / Decode converts text to Base64 and back in your browser, so you can inspect a token or prepare a value without a server.
How to use base64 encode / decode
- 1. Paste your text or a Base64 string.
- 2. Choose encode (to Base64) or decode (from Base64).
- 3. Copy the result.
When to use Base64 Encode / Decode
Inspect an encoded value
Decode a Base64 string from a config, token or API to see what it holds.
Encode for transport
Turn text into Base64 to embed it safely in JSON, a URL or an email header.
Quick developer check
Encode and decode values while debugging without leaving the browser.
Encoding is not encryption
Base64 is reversible by anyone — it hides nothing. It exists to represent data as safe text, not to protect it. Never treat a Base64 string as secure; if you need secrecy, use real encryption, and if you need integrity, use a hash.
What you can paste in
Encoding turns any text — including accents and emoji — into Base64 using UTF-8, the standard every modern system expects. Decoding accepts standard Base64, the URL-safe variant (with - and _ instead of + and /), text broken over several lines, and full data URLs such as data:text/plain;base64,…. If the decoded bytes aren't valid UTF-8 text (for example, a Base64-encoded image), you'll get an error instead of garbled characters.
Base64 is not encryption
Anyone can decode Base64 — it's a way to carry data through systems that only accept plain text (email, JSON, URLs), not a way to hide it. The encoded text is about a third larger than the original.
Frequently asked questions
Is Base64 a way to secure data?
No — it's easily decoded and offers no security. It's purely for safely representing data as text.
Can it encode more than plain text?
It handles text including Unicode; for files, a dedicated file-to-Base64 tool is more appropriate.
Is my input uploaded?
No — encoding and decoding happen in your browser.
