Base64 encoder / decoder

Encode and decode UTF-8 text with Base64 or Base64URL.

Up to 100,000 characters. Text stays on your device.

RESULT
Result updated.

Up to 100,000 input characters. Standard decoding requires padding where needed; URL-safe decoding accepts omitted padding. ASCII whitespace is ignored. Noncanonical encodings and unsupported binary output are rejected.

How it works

Encode UTF-8 text or decode Base64 into text. Select standard Base64 or the URL-safe alphabet.

Encoding converts UTF-8 bytes into six-bit alphabet symbols. Standard output uses padding; URL-safe output uses - and _ and omits padding.

A worked example

Hello encodes to SGVsbG8= in standard Base64. Base64URL output is SGVsbG8.

A few useful answers

Is Base64 encryption?

No. It is reversible encoding with no secret key. Results are displayed as text, never executed or opened.

Back to calculator ↑