ACLClouds
ACLClouds

Base64 and URL Encoder and Decoder

Encode and decode text in Base64, URL-safe Base64 and URL percent-encoding, with UTF-8 support. In the browser, free, no account.

Paste some text, choose the format and the direction: the result appears as you type. Everything happens in your browser, nothing is sent to our servers.

The four formats

Format Use
Base64 Represents bytes with 64 printable characters: email attachments, data in JSON, authentication headers.
Base64 URL-safe Replaces + and / with - and _ and removes the = padding: JWT tokens, URL parameters, file names.
URL (parameter value) Encodes all special characters of a value, including / ? & = (encodeURIComponent).
URL (entire address) Encodes a full address while keeping its structure: : / ? & = stay readable (encodeURI).

Base64 is not encryption

Base64 is an encoding anyone can reverse: it protects nothing. Do not put a password or a secret in it thinking it hides it, and do not confuse it with encryption.

Text and UTF-8

Text is converted to UTF-8 before Base64 encoding, so accents, non-Latin characters and emojis are handled. When decoding, a result that is not valid UTF-8 text is flagged rather than displayed garbled.

Frequently asked questions

What is the difference between Base64 and Base64 URL-safe?

URL-safe Base64 replaces + with - and / with _, and removes the = padding, so it can appear in an address or a file name without further encoding. The decoder accepts both variants.

Why does Base64 make the text longer?

It represents three bytes with four characters: the result is about a third longer than the original.

When should I use encodeURIComponent rather than encodeURI?

For a parameter value or a path segment, use the “parameter value” format. For a full address whose structure you want to keep, use “entire address”.

Is my data sent anywhere?

No. Encoding and decoding are done by your browser, with no network call.