Base64 Decoder
Decode Base64 or a data URI to text, an image preview, or the original file. URL-safe Base64 and missing padding work too.
Files and payloads stay in this browser tab. Binary decoding never substitutes the Unicode replacement character; invalid UTF-8 remains downloadable as its exact bytes. See how local processing works.
How to Decode Base64
Paste a Base64 string or a data URI, or open a .txt or .b64 file, and the decoded text appears as you type. Line breaks and missing padding are handled for you. If the bytes are an image it is previewed; if they are another binary format, Download saves them unchanged with the matching extension.
What is Base64?
Base64 is an encoding that represents binary data as ASCII text. Decoding reverses this process, converting the Base64 string back to its original binary or text form.
Recognizing Base64
Base64 strings contain only A-Z, a-z, 0-9, +, and / characters, often ending with = or == padding. They're typically longer than the original data.
Common Use Cases
Decode Base64 when inspecting API responses, extracting embedded images, debugging authentication tokens, or reversing encoded configuration values.
Frequently Asked Questions
Does it handle URL-safe Base64?
Yes. URL-safe Base64 replaces + with - and / with _, which standard decoders reject. Those characters are normalized before decoding, and missing = padding is restored, so a token copied out of a URL or a JWT segment decodes without editing it by hand.
What if my Base64 is invalid?
The error names the line and column of the first character that is not Base64, such as a quote or label copied along with the value, and says when = padding appears in the middle, which usually means two values were pasted together. Valid characters are A-Z, a-z, 0-9, + and / (or - and _), with up to two = at the end.
Can I decode Base64 images?
Yes. Paste the Base64 on its own or the whole data URI (data:image/png;base64,...). PNG, JPEG, GIF, WebP, AVIF, BMP, ICO and SVG images are previewed in the page with their pixel size, and Download saves the original bytes with the right extension.
What about other binary data?
If the decoded bytes are not UTF-8 text, they are kept byte for byte rather than shown with replacement characters. PDF, ZIP, gzip, WebAssembly and font files are recognised and download with their own extension; anything else downloads as decoded.bin.
Continue with the data, not the directory
Decode byte strings and transform text encodings without uploading the source.
Base64 Encoder
Encode text or any file to Base64, URL-safe Base64, or a ready-to-paste data URI.
Base64 to Image Converter
Turn Base64 or a data URI back into an image: see it with its pixel size, check its real format, and download the original file.
URL Decoder
Decode URL-encoded text back to readable format with our free online tool.
JWT Decoder
Decode and inspect JWT (JSON Web Tokens) instantly with our free online tool.