Free Online Base64 Encoder

Encode text, files, and images to Base64 — standard or URL-safe — instantly in your browser, with no uploads and no signup.

Base64 decoding and encoding workspace

Base64 → text, images, JSON, or raw bytes

Encode or decode instantly

Drop a file here, or click to browse

Upload a .txt, .b64, or .json file that contains Base64 text.

Any file up to 10 MB

0 characters · 0 bytes

Base64 to Decode

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.

How Base64 encoding works

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.

Base64 encoding FAQ

What is Base64 encoding used for?

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.

Does encoding increase file size?

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.

Can I encode a file without uploading it?

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.