Base64 encoder and decoder

Paste text to encode, or Base64 to decode. It runs entirely in your browser, so it is safe for tokens and other private data.

Your answer

Base64SGVsbG8sIEdsZW5DYWxjISDinJM=
Length28 characters

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. The text is turned into UTF-8 bytes; every 3 bytes become 4 Base64 characters from A–Z, a–z, 0–9, + and /.

Method and assumptions

Base64 represents binary data with 64 printable characters, growing it by about a third. It is an encoding, not encryption: anyone can decode it.

Questions

Is Base64 secure?

No. It only changes the representation; decoding needs no key.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators