Encode text, files, and images to Base64 — standard or URL-safe — instantly in your browser, with no uploads and no signup.
Base64 → text, images, JSON, or raw bytes
Upload a .txt, .b64, or .json file that contains Base64 text.
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.
Base64 encoding turns arbitrary bytes into an alphabet of 64 printable characters. It is the standard way to carry binary data through JSON, XML, HTML attributes, email bodies, and configuration files without corruption.
Paste text or drop a file above. The encoder reads the bytes exactly as they are, applies RFC 4648 padding, and lets you switch to the URL-safe alphabet or wrap the output at 64 or 76 characters. Everything runs locally; the file never leaves your device.
It is used to embed images in CSS or HTML, carry attachments in email, store binary values in JSON, and pass data through systems that only accept text.
Yes. Base64 output is about 33% larger than the original bytes. That tradeoff is why it is used for transport and embedding rather than storage.
Yes. The file is read with the browser's File API and encoded in memory; no network request is made.
Need the opposite direction? Use the Base64 decoder, or browse all Base64 tools.
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.