Free · UTF-8 & URL-safe · Nothing uploaded

Base64 encode & decode

Convert text, files and images to and from Base64. Unicode-safe, with a URL-safe option — and it all runs in your browser.

🔒 Everything is encoded and decoded in your browser — nothing is uploaded.

About Base64 encoding

Base64 turns binary data or text into a safe ASCII string of letters, numbers and a few symbols, so it can travel through systems that only handle text.

🔤

Text ↔ Base64

Encode and decode strings with full Unicode and emoji support, plus a URL-safe variant.

📎

File & image

Turn any file into Base64 or a data: URL, or decode Base64 back into a downloadable file.

🔒

Private

It all runs locally — handy for secrets and tokens you'd never want to paste into a server.

Developers use Base64 to embed images in CSS or HTML as data URLs, send binary data inside JSON or XML, store small assets in code, decode JWT segments, and inspect API payloads. This tool encodes text as UTF-8 first so accented characters and emoji round-trip correctly, supports URL-safe output (- and _ instead of + and /), and previews decoded images right in the page.

Base64 FAQ

Does it handle Unicode and emoji?

Yes — text is encoded as UTF-8 first, so accents and emoji round-trip correctly.

Can I encode a file or image?

Yes — drop any file to get its Base64 (optionally as a data URL), and paste Base64 to decode it back to a downloadable file, with an image preview.

What is URL-safe Base64?

A variant that replaces + and / with - and _ and drops padding, so it's safe in URLs and filenames.

Is it private?

Yes — everything runs in your browser, so your text and files are never uploaded.