Data converter

Base64 Encoder Decoder

Encode UTF-8 text to Base64, decode Base64 back to text, convert URL-safe Base64, control padding, validate input, and inspect byte counts directly in your browser.

Base64 input

Encode or decode

UTF-8 safe

Ready.

Output

Validation

Base64 result details

Input characters11
Input UTF-8 bytes11
Output characters16
Padding characters1
Detected alphabetStandard
ValidationValid

Base64 notes

Text encodingThis tool encodes and decodes Unicode text using UTF-8 bytes before Base64 conversion.
PaddingStandard Base64 often ends with = or == so the encoded length is a multiple of 4.
URL-safe Base64URL-safe mode uses - and _ instead of + and /, which is common in tokens and URLs.
Not encryptionBase64 is reversible encoding, not hashing or encryption.

Base64 character reference

VariantCharactersNotes
StandardA-Z a-z 0-9 + /Common MIME and general Base64 alphabet
URL-safeA-Z a-z 0-9 - _Safer in URLs, filenames, and tokens
Padding=Fills output length to a multiple of 4
Line wrap76 charactersCommon for MIME-style encoded text

Popular Base64 examples

FAQ

Is Base64 encryption?

No. Base64 is reversible encoding. Anyone can decode it, so it should not be used to hide secrets.

Why does Base64 output end with equals signs?

Equals signs are padding. They make the encoded output length a multiple of 4 characters.

What is URL-safe Base64?

URL-safe Base64 replaces + with - and / with _. It often omits padding, especially in tokens.