Browse all tools
Developer Tool

Base64 Encode and Decode

Convert text to Base64 and decode Base64 back to text right in your browser. Encode files and images too, switch to the URL-safe variant, and copy or download the result in one click. UTF-8 safe, free, nothing uploaded.

Text Type or paste text to encode
0 characters
Base64 Encoded result, ready to copy
Waiting for input
Guide

How to encode and decode Base64

1

Pick Encode, Decode, or File

Choose whether you are encoding text, decoding a Base64 string, or encoding a whole file.

2

Paste or Upload

Type or paste your text, or drop a file into the panel. The result appears live in the second pane.

3

Set the Options

Turn on URL-safe when encoding for links, or add the data URI prefix when encoding an image for HTML or CSS.

4

Copy or Download

Copy the output to your clipboard or download it as a file. Nothing is ever uploaded.

Base64 Encode and Decode

What Base64 Is and When You Need It

Benefits

Why Use This Base64 Encoder and Decoder

Encode Text to Base64

Turn any text into a clean Base64 string, ready to drop into JSON, headers, or config.

Decode Base64 to Text

Paste a Base64 string and read the original text back, so you can see what a token or payload actually holds.

File and Image to Base64

Encode any file in your browser and add a data URI prefix to embed images straight into HTML or CSS.

URL-Safe Variant

Switch to the URL-safe alphabet (- and _, no padding) so the result is safe in links, JWTs, and filenames.

UTF-8 and Emoji Safe

Accented letters, emoji, and non-English text encode and decode cleanly instead of turning into garbage.

Swap in One Click

Send the output back to the input to flip between encoding and decoding without retyping.

Copy or Download

Copy the result to your clipboard or save it as a .txt file in a single click.

Runs in Your Browser

Every conversion happens on your device. Nothing is uploaded, logged, or stored.

FAQ

Frequently Asked Questions

Common questions about Base64 encoding and decoding.

What is Base64?

Base64 is a binary-to-text encoding that represents any data using 64 plain characters (A to Z, a to z, 0 to 9, plus + and /). It lets binary data travel safely through text-only channels like email, URLs, JSON, and HTML.

How do I encode text to Base64?

Choose Encode, then type or paste your text. The Base64 output appears instantly in the second pane, ready to copy or download. Everything runs in your browser, so the text is never uploaded.

How do I decode Base64 to text?

Choose Decode and paste your Base64 string. The tool converts it back to the original text right away. It accepts both standard and URL-safe Base64, with or without padding.

Is Base64 encryption or secure?

No. Base64 is encoding, not encryption. Anyone can decode it in a second, so it protects nothing. Never use it to hide passwords or secrets. Encrypt sensitive data first, then Base64 the result only if a text-only channel needs it.

What is URL-safe Base64?

URL-safe Base64 replaces the + and / characters with - and _ and drops the = padding, because the standard symbols have special meaning in URLs. Use it for values that go into links, query strings, JWTs, or filenames.

Does it handle emoji and non-English text?

Yes. The encoder is UTF-8 safe, so accented letters, emoji, and characters from any language encode and decode cleanly. Many quick scripts corrupt these, which is a common source of garbled output.

Can I encode a file or image to Base64?

Yes. Switch to File mode and drop in any file to get its Base64. Turn on the data URI prefix to get the exact string you can paste into HTML or CSS to embed an image without a separate request.

Is this Base64 tool free and private?

Yes, it is completely free with no signup and no limits. Every conversion happens in your browser, so your text and files stay on your device and are never sent to a server.

Scroll to Top