Encode / Decode

Base64, URL, HTML entities, and Hex — encode and decode in your browser. No tracking, no server.

What this does

Guides

FAQ

Is my data sent to a server?

No. All encoding and decoding happens in your browser.

Does this support Unicode / emoji?

Yes. Text is converted to UTF-8 bytes before encoding, so any Unicode character (including emoji) round-trips correctly.

What's the difference between encodeURI and encodeURIComponent?

We use encodeURIComponent, which escapes characters like /, ?, #, and & — the right choice when the value is going inside a query parameter or path segment. encodeURI leaves those alone, which is only useful for encoding a whole URL.

Why does my Base64 string fail to decode?

Common causes: it's actually Base64 URL (try that tab), the input has been HTML-escaped (e.g. + turned into a space), or padding (=) is missing.