Base64 Encoder & Decoder
Encode text or any file as Base64, Base64URL or a data URI, and decode it back, with exact error positions.
Offline prerequisites
The installed app shell does not prepare every operation. Choose the resources you need, prepare while online, then recheck before disconnecting. Downloads below are approximate bundled sizes; network transfer can differ.
This tool has no separately downloaded codec/model prerequisite in this build. Its app code must still be installed, and browser APIs, file limits and supported formats still apply.
Checking this build’s offline resources…
Tab moves to the next control. Ctrl+] or Command+] inserts a tab.
About this tool
Encode text as Base64 or Base64URL, or turn any file into Base64 or a data: URI. Text is encoded as UTF-8, so accented letters and emoji survive the round trip, and images get ready-made HTML and CSS snippets.
Decoding reads standard and URL-safe Base64, with or without padding and line breaks, and data: URIs too. A wrong character or broken padding is pointed out at its exact position. If the result is text it’s shown as text; otherwise you see what kind of file it is, a hex view, and can download it.
Base64 makes data about a third larger. Inline data URIs suit small icons; larger images load faster as separate files that browsers can cache.
What’s the difference between Base64 and Base64URL?
Base64URL swaps + and / for - and _, which are safe in URLs and file names, and usually drops the = padding. JWTs and many APIs use it.
Is Base64 encryption?
No. It’s an encoding anyone can reverse. Never use it to hide passwords or secrets.