Base64 Encode / Decode
Convert text to Base64 and back. Unicode is encoded as UTF-8, so emoji and non-Latin text survive the round trip, and URL-safe Base64 is accepted when decoding.
Output
🔒 Runs in your browser. Your data is never uploaded.
How to use
- Choose Encode or Decode.
- Paste your text or Base64 string.
- Copy the result. Turn on URL-safe for tokens and query strings.
Base64 is not encryption
Base64 only changes how bytes are written; anyone can reverse it. Do not use it to hide passwords or secrets.
Size overhead
Base64 output is about 33% larger than the input, because every 3 bytes become 4 characters.
Frequently asked questions
- Why does my decoded text look garbled?
- The original data was probably not UTF-8 text – for example an image or a gzip stream. This tool decodes to text and tells you when the bytes are not valid UTF-8.
- What is URL-safe Base64?
- A variant that replaces + and / with - and _ and drops the = padding, so the value can sit in a URL or filename without escaping. JWTs use it.
- Do I need to remove line breaks before decoding?
- No. Whitespace and line breaks, common in PEM files and email, are ignored.
Related tools
- URL Encode / DecodePercent-encode text for URLs or decode an encoded URL back to readable text.
- JWT DecoderDecode a JSON Web Token to read its header, payload and expiry time.
- Hash Generator (SHA-256, SHA-512, SHA-1)Generate SHA-256, SHA-512, SHA-384 or SHA-1 hashes of text in your browser using the Web Crypto API.
- JSON Formatter & ValidatorFormat, validate and minify JSON in your browser.