File to Base64

Runs entirely in your browser — the file never leaves your machine. Useful for embedding small assets in CSS/JSON/config files, or as a data URI.

File → Base64

Base64 → File

What is File to Base64?

Base64-encoding an entire file (not just text) turns it into a text string that can be embedded in JSON, CSS, or config files where a raw binary file wouldn't fit — commonly used for small images and icons.

How to use it

Choose any file to encode it to Base64 (optionally as a ready-to-use data: URI), or paste Base64 back to decode and download the original file. Runs entirely in your browser.

Example

A small PNG icon encodes to a data: URI you can paste directly into a CSS background-image property.