Base64 Converter

Paste your text; the Base64 or URL encoding appears instantly.

Operation

How it works

Text is first converted to UTF-8 bytes and then Base64 encoded, so accented characters survive. When decoding, whitespace is dropped, missing padding is added and the URL-safe alphabet is accepted. URL encoding follows encodeURIComponent. Nothing is sent to a server.

Frequently asked questions

Is Base64 encryption?

No. Base64 is only an encoding that anyone can reverse; it provides no secrecy.

What is URL-safe Base64?

The variant where + and / become - and _ and the trailing = padding is dropped; it is used in URLs and JWTs.

Why do accented characters break in some tools?

The browser's btoa function only accepts Latin-1. Here the text is converted to UTF-8 bytes first, so characters like ç, ş and ğ encode and decode correctly.

Why does URL encoding turn a space into %20?

That is the encodeURIComponent standard; the + seen in form submissions is a different rule, and both are accepted when decoding.