Encode text, files, and images to Base64, or decode Base64 back to readable text, images, JSON, and hex. Free, instant, and entirely in your browser — nothing is ever uploaded to a server.
Text, files, and images → Base64
Text files open in the editor. Images and other files are read as raw bytes.
Any file up to 10 MB
0 characters · 0 bytes
Your Base64 output will appear here
Type, paste, or upload something on the left to get started.
No image payload found
Decode Base64 that holds a PNG, JPEG, GIF, WebP, BMP, or SVG image — or upload an image in Encode mode.
Decoded JSON appears here, ready to format, copy, or download.
Decoded bytes appear here as a classic hex dump.
Paste your content, pick a mode, and copy or download the result — everything runs locally in your browser.
Type or paste any text, drop a file, or upload an image. Text files open in the editor, while images, PDFs, and other binaries are read as raw bytes up to 10 MB.
Switch modes with one click. Decoding ignores spaces and line breaks, accepts URL-safe Base64, and restores missing padding automatically.
Check the live result as text, an image preview, formatted JSON, or a hex dump — then copy it or download it as a file. Nothing is sent to a server.
The same message in two forms — and exactly what changes when you encode it.
Hello, Base64! This is a plain UTF-8 paragraph. Encode it once and it travels safely through JSON, URLs, and email.
SGVsbG8sIEJhc2U2NCEKClRoaXMgaXMgYSBwbGFpbiBVVEYtOCBwYXJhZ3JhcGguCkVuY29kZSBpdCBvbmNlIGFuZCBpdCB0cmF2ZWxzIHNhZmVseQp0aHJvdWdoIEpTT04sIFVSTHMsIGFuZCBlbWFpbC4=
116 bytes → 156 Base64 characters · safe ASCII, no line breaks
Encode any UTF-8 text, drop a JSON or TXT file, or upload an image. Bytes are read exactly as they are, so nothing is lost.
Switch between + / and - _ for URLs, JWT segments, and query strings. Decoding accepts both alphabets automatically.
Decoded PNG, JPEG, GIF, WebP, BMP, and SVG payloads render inline with their MIME type, dimensions, and byte size.
Pretty-print JSON payloads with one click and inspect any binary data in a classic 16-byte hex dump.
Encoding and decoding happen entirely in your browser. Your text, files, and images never touch a server.
A live pipeline updates the output as you type. Even multi-megabyte files are converted in milliseconds.
Paste text, drop a .json or .txt file, or upload an image and get clean Base64 with the right MIME type.
Turn Base64 back into a picture and preview it instantly. PNG, JPEG, GIF, WebP, BMP, and SVG are detected automatically.
Decode Base64 JSON, pretty-print it with one click, or inspect raw bytes in a readable hex viewer.
No account, no quotas, no watermarks. Every feature is available without limits.
RFC 4648 padding, line wrapping, and URL-safe alphabets are handled correctly in both directions.
Six everyday situations where Base64 is the glue.
Decode Base64 request bodies, headers, and tokens to see exactly what an API sent.
Encode small images, fonts, and SVGs to embed them directly in HTML or CSS.
Decode the Base64URL segments of a JWT to read its header and claims.
Turn files into Base64 text for email templates, SMTP tests, and MIME debugging.
View decoded bytes in a hex dump to check file signatures and byte order.
Encode certificates, keys, and blobs for config files and environment variables.
Answers to common questions about Base64 encoding, decoding, and keeping your data private.
Yes. Every feature is free with no registration, no usage limits, and no watermarks. There is nothing to install and no account to create.
Encoding and decoding run locally in your browser using JavaScript. Nothing is uploaded, stored, or logged on a server. Your text, files, and images never leave your device.
Base64 is a binary-to-text encoding that represents bytes using 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It makes binary data safe to embed in text formats such as JSON, XML, HTML, and email. Encoded data is about 33% larger than the original.
Standard Base64 (RFC 4648) and URL-safe Base64 using - and _ instead of + and /. Decoding also accepts missing padding and ignores spaces, tabs, and line breaks, so wrapped or copied data usually works without cleanup.
You can upload files up to 10 MB. Very large text results are truncated in the preview for smooth performance, but the full output is always available when you copy or download it.
No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect passwords, keys, or other secrets. It only makes data safe to transport through text-only channels.
Yes. If the decoded bytes are PNG, JPEG, GIF, WebP, BMP, or SVG, the Image tab shows a live preview with the MIME type, pixel dimensions, and byte size. You can then download the original image file.
The most common causes are characters that are not part of the Base64 alphabet, a truncated string, or data that was encoded with a different alphabet. This tool strips whitespace, accepts URL-safe characters, and adds missing padding before reporting an error.
Yes. When the decoded payload is valid JSON, the JSON tab pretty-prints it with one click and lets you copy or download it as a .json file. Invalid JSON shows the parser message and the raw text.
No. There is no server-side storage and no upload history. Only your theme and encoding preferences are saved in your browser's local storage.
URL-safe alphabet
Use - and _ instead of + and / when encoding.
Decoding always accepts standard and URL-safe Base64, with or without padding and line breaks.