Skip to main content
Toolzum

Base64 Encode/Decode

Encodes UTF-8 text into Base64 strings and decodes them back. Emoji and non-Latin scripts round-trip, and ten local schemes cover URLs, HTML entities, hex, binary and escapes. Code never leaves your device.

100% Local Browser Native

How to Use the Base64 Encode/Decode

1. Paste Base64

Paste Base64 text into the input area. Nothing runs until you trigger it.

2. Encode

Encode to the target format.

3. Copy encoded

Copy the encoded output.

Similar Tools You Might Need

See all

Frequently Asked Questions

When should I use Base64?

Embedding small images in CSS/HTML data URIs, passing binary through JSON APIs, and encoding credentials for Basic auth headers. It is an encoding, not encryption — anyone can decode it.

Why is the output ~33% larger?

Base64 maps every 3 bytes to 4 ASCII characters by design. A 3KB string becomes about 4KB of text — fine for small snippets, wasteful for large payloads.

How do data URIs work?

Prefix the output like data:image/png;base64,iVBOR… and browsers render it inline. Handy for single-file HTML exports and email signatures with tiny logos.

Does it handle Unicode text?

Yes — text is UTF-8 encoded before conversion, so emoji and non-Latin scripts round-trip correctly, unlike naive btoa() snippets that corrupt them.

When using Base64 Encode/Decode, is my text uploaded?

No. Encoding runs entirely in your browser. This page accepts text only — there is no file upload and nothing leaves your device.

Which of the 10 schemes handle emoji?

The Scheme menu lists 10: Base64, Base64URL, URL, HTML Entity, Hex, Binary, ROT13, UTF-8, Unicode Escape and Backslash Escape. Base64 and Base64URL encode UTF-8 bytes; URL emits percent-encoded UTF-8; Hex and Binary use Unicode code points; UTF-8 emits hex bytes. All of them preserve emoji.

Last updated October 2026