A live look inside
Live preview. It becomes interactive with your account.
What Base64 Encode/Decode does
Base64 is everywhere binary data has to slip through text-only channels: email attachments, data URIs in CSS, JSON fields, auth headers, JWT tokens. And every time you have one of those strings in front of you, all you really want is to know what is inside. That is exactly what this tool is built for: one input, one click, the plain-text result.
It does more than plain Base64. Five encodings are on tap - classic Base64, URL-safe Base64URL (with - and _ instead of + and /), Base32, percent-based URL encoding and hex. In both directions. Paste an encoded string and the auto-detection usually works out the format on its own and flips straight to decode.
Files get their own modes. Drop an image or any file up to 50 MB and you get the Base64 string back - or a ready-made data URI you can embed directly into HTML or CSS. The other way round, the file decoder turns a Base64 blob back into a real downloadable file. If it is an image, you see a preview instantly, whichever mode you are in.
The JWT trick is the quiet favourite for anyone working with APIs. Paste a JSON Web Token and decode it as Base64URL, and the tool automatically pulls out the payload and shows it cleanly formatted as JSON. No copying the middle segment by hand, no separate debugger needed.
Everything runs purely in the browser. TextEncoder and TextDecoder make sure umlauts, emojis and other UTF-8 characters survive the round trip intact - no mangled a-umlaut, no broken euro sign. Your data, your tokens, your files stay on your device. No server round trip, no upload, no log.
The presets keep everyday work quick: encode text, decode a JWT, build a Basic Auth header, URL-encode, image to data URI - one tap sets mode, encoding and direction. Plus stats on characters, bytes and size growth so you can see how much Base64 inflates your data (rule of thumb: about a third bigger).
Features
Five encodings
Base64, Base64URL, Base32, URL encoding and hex - all in both directions, switched with one click.
Automatic format detection
Paste an encoded string and the tool recognises the format and switches straight to decode.
Files and data URIs
Encode files up to 50 MB, download Base64 back as a file, or generate an embeddable data URI.
Decode JWT payload
Paste a JSON Web Token and get its payload output as cleanly formatted JSON.
Image preview
If your Base64 holds an image, the tool shows it right away - PNG, JPEG, GIF, SVG, WebP and more.
UTF-8 safe
Umlauts, emojis and special characters survive encoding intact thanks to TextEncoder, with no garbage.
Presets for common cases
Basic Auth header, URL encode, decode text and more - one tap sets the right mode and encoding.
Runs in the browser, no upload
No server sees your data. Everything is computed locally, works offline, no account.
How it works
- 1
Pick a mode
Text, file encode, file decode or data URI. For most jobs the text mode is all you need.
- 2
Set encoding and direction
Base64, Base64URL, Base32, URL or hex, plus encode or decode. When the format is detected this happens automatically.
- 3
Type or drop a file
Type text, paste a string or drag and drop a file into the drop zone.
- 4
Copy or download the result
Copy the result to your clipboard with one click, or download the decoded file directly.
Who needs this
Frequently asked questions
What is the difference between Base64 and Base64URL?
Base64URL is a URL-safe variant: it uses - and _ instead of + and / and drops the = padding. That lets the string sit in URLs and JWT tokens without further escaping. Both encode the same underlying data.
Can I decode a JWT with it?
Yes. Paste the token and decode it as Base64URL. The tool recognises the three segments, extracts the payload and shows it formatted as JSON. It does not verify the signature - it only reads the contents.
Are my files uploaded?
No. Encoding and decoding run entirely in your browser via the File and encoding APIs. No file and no text leaves your device, there is no server upload and no log.
Why is my Base64 longer than the original text?
Base64 represents three bytes with four characters, roughly 33% more. That is normal and the price for pushing binary data safely through text-only channels. The stats line shows you the exact size growth.
Does it work with umlauts and emojis?
Yes. The tool encodes via UTF-8, so umlauts, the euro sign and emojis convert back and forth correctly. A naive btoa approach would produce garbage here - this one does not.
How big can a file be?
Up to 50 MB. Larger files are rejected so your browser does not freeze. That is plenty for most images, PDFs and small binaries.
Related tools
UUID Generator
Generate UUIDs (v4) individually or in batch. Copy, choose formatting, use instantly. Runs in…
JWT Inspector
Decode and analyze JWT tokens. Header, payload and expiry at a glance.
Hash Verify
Calculate MD5, SHA-1, SHA-256, SHA-384, SHA-512 hashes and HMAC. Hash files and text, verify…
QR Code Generator
Generate QR codes for URLs, text, vCards, and Wi-Fi. Download as PNG or SVG. Free, instant, n…
JSON Formatter
Format, validate, and minify JSON with syntax highlighting and error detection. Free, runs in…
Text Cleaner
Remove whitespace, HTML tags, URLs, special characters. Fix German umlauts, typography, smart…
Ready to use Base64 Encode/Decode?
No installation. No account needed to start. Open it right in your browser.
Open now