Search 85 tools...

Ctrl K

Encode a File to Base64

To encode a file to Base64, add any file, choose whether to output a data URI or wrap lines at 76 characters, and click Base64 Encode. You get a .b64.txt file with the standard Base64 text, and large files are encoded in chunks. Encoding runs in your browser, so the file is never uploaded.

Plain Base64 or a ready-to-paste data URI, with optional MIME line wrapping

Runs in your browser · files are never uploaded

Quick facts

Formats
Any file → Text (TXT); several results come as one ZIP
Where it runs
In your browser, on your own device. Files are not uploaded.
Size limit
300 MB per run on a computer, 80 MB on a phone or tablet
Files per run
Up to 50
Last updated

How to use Base64 Encode

1

Choose any file.

2

Optionally turn on Output as a data URI or Wrap lines at 76 characters (MIME).

3

Click Base64 Encode.

4

Download the .b64.txt file.

Features & Privacy

Fast & High Quality
High-speed document engines process your files quickly while preserving original text, vectors, and image clarity.
Private: Files Never Leave Your Device
Your browser processes the files on your device. If it offers a server fallback, files are uploaded only when you choose Use secure server.
Batch Processing
Add up to 50 files at once; several results are packaged into one ZIP download, or saved one by one.

Frequently Asked Questions

A data URI puts the file type in front of the Base64 text, such as data:image/png;base64, so you can paste it straight into HTML or CSS as an image or font.

Turn it on for email (MIME) or systems that expect short lines. Leave it off for JSON, code or data URIs; wrapping is never applied to data URIs.

The encoder writes standard Base64 using + and / with = padding. The Base64 Decode tool can read both standard and URL-safe text that uses - and _.

Base64 text is about one third larger than the original file, because every 3 bytes become 4 characters. Line wrapping adds a little more for the line breaks.

Up to about 300 MB on a computer and 80 MB on a phone or tablet. Large files are encoded in chunks, so the page stays responsive while it works.

No. Encoding runs in your browser on your own device, so the file never leaves it. Any file type works, from images to PDFs and archives.