← All free tools

Base64 Encoder / Decoder

✓ 100% FREE — No Signup Needed

Encode text to Base64, decode Base64 back to text, or convert any file to a Base64 data URL. Everything runs 100% in your browser — nothing is uploaded.

Decoded image preview
File → Base64

What is Base64?

Base64 is a way to represent binary data using only 64 safe text characters (A–Z, a–z, 0–9, +, /). Developers use it to embed images in HTML/CSS, encode API tokens, and pass binary data through text-only systems like JSON or email.

This tool also converts files to Base64 — pick any image or file and get a ready-to-use data URL. If the data URL is an image, you will see a live preview. The URL-safe variant swaps + and / for - and _ so the output works safely inside URLs and filenames.

Frequently Asked Questions

How do I encode text to Base64?

Type or paste your text in the input box, choose "Encode", and click Convert. The Base64 output appears instantly and you can copy it with one click.

How do I decode Base64 to text?

Paste the Base64 string, choose "Decode", and click Convert. If the string is invalid you will get a clear error message instead of broken output.

What is URL-safe Base64?

Standard Base64 uses + and / which have special meaning in URLs. URL-safe Base64 replaces them with - and _ so the encoded string can be used directly in links and filenames.

Is this Base64 tool free and private?

Yes. It is 100% free, no signup, and everything — including file conversion — happens locally in your browser. Your files are never uploaded anywhere.