Writing toolsBase64 encoder and decoder

Base64 encoder and decoder

Convert UTF-8 text to standard Base64 and back. The decoder accepts padded or unpadded input and ignores line breaks.

Add or drop TXT, Markdown, CSV, TSV, LOG, DOCX, ODT, or PDF files.

Preview

What this tool is for

Represent a short piece of UTF-8 text using the standard Base64 alphabet, or read a Base64 value that you expect to contain text. An accented word is a useful check that both ends use the same encoding.

How to use it

Choose Encode and type “café”. Copy “Y2Fmw6k=” from Preview. To read it back, paste that value into Your text and switch Direction to Decode. You should see the original accent.

Worked example

Input

Hello, café

Result

SGVsbG8sIGNhZsOp

What does the equals sign mean?

It pads the last group of encoded characters. This decoder also accepts correctly formed standard Base64 with its trailing padding omitted. The result must decode to UTF-8 text. Anyone with the encoded value can decode it, so keep private text out of anything you share.