Base64 / URL Encoder

Encode or decode text as Base64 or URL encoding (percent-encoding).

[local] Runs in your browser. Nothing you enter leaves your device.

Base64 / URL Encoder

How it works

Base64

Base64 turns any data into text made of just 64 characters (letters, digits, + and /), with = at the end as padding. It's used anywhere binary data has to travel through something that only handles plain text: email attachments, data: URLs in web pages, Kubernetes secrets, and the Authorization: Basic header in HTTP.

It works by taking the data 3 bytes (24 bits) at a time and splitting it into 4 groups of 6 bits. 6 bits can hold 64 different values, one for each character. That's why Base64 output is about a third bigger than the input.

Base64 is not encryption. Anyone can decode it, so never treat a Base64 "password" or secret as protected.

URL encoding

URLs can only contain certain characters. Everything else is replaced by % followed by its byte value in hex: a space becomes %20, an ampersand becomes %26, and é becomes %C3%A9 (two bytes in UTF-8). You'll see this in links with search terms or file names in them.

Both encoders here handle any text, including accents and emoji, by working with its UTF-8 bytes.