Free Online Base64 Encoder & Decoder

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

Encode or decode instantly

Drop a file here, or click to browse

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

Text to Encode

Output

Waiting for input

Your Base64 output will appear here

Type, paste, or upload something on the left to get started.

Everything runs locally in your browser — see how Base64 works.

Encode or Decode Base64 in 3 Simple Steps

Paste your content, pick a mode, and copy or download the result — everything runs locally in your browser.

1

Paste Text or Upload a File

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.

2

Choose Encode or Decode

Switch modes with one click. Decoding ignores spaces and line breaks, accepts URL-safe Base64, and restores missing padding automatically.

3

Inspect, Copy, or Download

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.

Plain Text vs. Base64: See the Difference

The same message in two forms — and exactly what changes when you encode it.

Plain text input

Hello, Base64!

This is a plain UTF-8 paragraph.
Encode it once and it travels safely
through JSON, URLs, and email.

Base64 output

SGVsbG8sIEJhc2U2NCEKClRoaXMgaXMgYSBwbGFpbiBVVEYtOCBwYXJhZ3JhcGguCkVuY29kZSBpdCBvbmNlIGFuZCBpdCB0cmF2ZWxzIHNhZmVseQp0aHJvdWdoIEpTT04sIFVSTHMsIGFuZCBlbWFpbC4=

116 bytes → 156 Base64 characters · safe ASCII, no line breaks

Supported Base64 Formats & Inspection Tools

Text, files & images

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.

Standard & URL-safe alphabets

Switch between + / and - _ for URLs, JWT segments, and query strings. Decoding accepts both alphabets automatically.

Image & file previews

Decoded PNG, JPEG, GIF, WebP, BMP, and SVG payloads render inline with their MIME type, dimensions, and byte size.

JSON & hex inspection

Pretty-print JSON payloads with one click and inspect any binary data in a classic 16-byte hex dump.

Why Choose Our Base64 Converter?

Absolutely Private

Encoding and decoding happen entirely in your browser. Your text, files, and images never touch a server.

Lightning Fast

A live pipeline updates the output as you type. Even multi-megabyte files are converted in milliseconds.

Text, Files & Images

Paste text, drop a .json or .txt file, or upload an image and get clean Base64 with the right MIME type.

Image Decode Preview

Turn Base64 back into a picture and preview it instantly. PNG, JPEG, GIF, WebP, BMP, and SVG are detected automatically.

JSON & Hex Tools

Decode Base64 JSON, pretty-print it with one click, or inspect raw bytes in a readable hex viewer.

Completely Free

No account, no quotas, no watermarks. Every feature is available without limits.

Standards-Compliant

RFC 4648 padding, line wrapping, and URL-safe alphabets are handled correctly in both directions.

Use Cases

Six everyday situations where Base64 is the glue.

API & Payload Debugging

Decode Base64 request bodies, headers, and tokens to see exactly what an API sent.

Data URLs for the Web

Encode small images, fonts, and SVGs to embed them directly in HTML or CSS.

JWT & Token Inspection

Decode the Base64URL segments of a JWT to read its header and claims.

Email Attachments

Turn files into Base64 text for email templates, SMTP tests, and MIME debugging.

Binary Inspection

View decoded bytes in a hex dump to check file signatures and byte order.

Database & Config Values

Encode certificates, keys, and blobs for config files and environment variables.

Frequently Asked Questions About Base64

Answers to common questions about Base64 encoding, decoding, and keeping your data private.

Is this Base64 encoder and decoder completely free?

Yes. Every feature is free with no registration, no usage limits, and no watermarks. There is nothing to install and no account to create.

Is it safe to paste sensitive data?

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.

What exactly is Base64?

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.

Which Base64 variants are supported?

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.

Is there a file size limit?

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.

Does Base64 encrypt my data?

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.

Can I decode Base64 into an image?

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.

Why does my Base64 fail to decode?

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.

Can I format JSON decoded from Base64?

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.

Is my data or upload history stored?

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.

Ready to Encode or Decode?