Base64 encoder and decoder

Paste your text or Base64 code. Everything runs in your browser: nothing is sent.

Base64 encoder and decoder

Action
Alphabet
Up to 100,000 characters

Result

U2FsdXQsIMOnYSB2YSA/Base64

Bytes (UTF-8)
15
Characters in the result
20

Base64 encoder and decoder

Inputs

Action
Encode
Alphabet
Standard (+ /)
Text
Salut, ça va ?

How it is calculated

The text is turned into UTF-8 bytes (e.g. “ç” = 2 bytes).

Result

Base64

U2FsdXQsIMOnYSB2YSA/
Bytes (UTF-8)
15
Characters in the result
20

How it is calculated

  1. The text is turned into UTF-8 bytes (e.g. “ç” = 2 bytes).
  2. Each group of 3 bytes (24 bits) becomes 4 characters out of 64 (A–Z, a–z, 0–9, + and /). “=” pads the end.
  3. URL-safe variant: + becomes -, / becomes _, and trailing = are removed.

Example

“Salut, ça va ?” (15 bytes) gives U2FsdXQsIMOnYSB2YSA/.

Good to know

  • Base64 is not encryption: anyone can decode it. Do not use it to hide a password.
  • Text only: binary files (images…) are not handled.

Frequently asked questions

What is this tool used for?

Paste your text or Base64 code. Everything runs in your browser: nothing is sent.

How is the result calculated?

The text is turned into UTF-8 bytes (e.g. “ç” = 2 bytes).

What should I check before using the result?

Base64 is not encryption: anyone can decode it. Do not use it to hide a password.

Updated October 10, 2026

Indicative result. For an important decision, check with a professional.