Base64 Encoder

Text ↔ Base64 and Base64URL

Alphabet

The fields are linked: editing the text encodes it, editing the Base64 decodes it. Spaces and line breaks in Base64 are ignored. Decoding accepts both the standard and the URL alphabet; encoding uses the selected one.

What Base64 does

Base64 turns arbitrary bytes into a set of Latin letters, digits and two signs, so that binary data can be put into JSON, an e-mail or a URL. It is not encryption: anyone can read the data back without a key.

The encoder works with UTF-8 text. JWT, cookies and query parameters usually need Base64URL — the same principle, but without «+», «/» and the trailing «=».

FAQ

Is the text sent to a server?

No. Encoding and decoding run in the browser; no request is sent to the server.

How does Base64URL differ from plain Base64?

In Base64URL the «+» and «/» characters are replaced with «-» and «_», and the trailing «=» can be omitted. This form is convenient for tokens and URL parameters.

Are non-Latin characters supported?

Yes. Text is read and written as UTF-8, so Cyrillic and any other Unicode characters are encoded without loss.