Base64 Encode / Decode

Encode UTF-8 text as Base64, or decode valid Base64 as UTF-8.

Base64 output
SGVsbG8sIFRhbmdvIQ==

Standard alphabet.

Breakdown & share
Full output
SGVsbG8sIFRhbmdvIQ==
Output characters
20
Processed on this device.

Your inputs

Operation

Example values. Change any of them.

More options

How it’s worked out

See how we got SGVsbG8sIFRhbmdvIQ==

Encode UTF-8 bytes into six-bit groups using the Base64 alphabet. Decode by reconstructing the original bytes, then interpreting them as UTF-8.

  1. Convert the input text into UTF-8 bytes.
  2. Return 20 output characters.

About this calculator

Base64 is a representation of bytes for transport. This text utility can decode UTF-8 payloads and accepts optional padding.

Worked example

Base64 output · SGVsbG8sIFRhbmdvIQ==

Encode UTF-8 bytes into six-bit groups using the Base64 alphabet. Decode by reconstructing the original bytes, then interpreting them as UTF-8.

  1. Convert the input text into UTF-8 bytes.
  2. Return 20 output characters.

Common questions

Does Base64 protect a secret?

Base64 can be decoded by anyone. Use encryption or an appropriate secret store to protect data.

Can I paste text with accents or emoji?

Yes. The text is first converted to UTF-8.

What changes in Base64url?

The alphabet uses hyphen and underscore in place of plus and slash. Padding can be omitted.

Formula sources

Reference checked November 22, 2026.