Base64 encoding and decoding explained

Base64 turns bytes into printable text for transport. It is reversible encoding, not encryption.

Encode a UTF-8 string

For the ASCII text Hello, Base64 encoding produces SGVsbG8=. Text with accented characters or emoji must first be encoded as UTF-8 bytes; treating each character as a single byte produces incorrect results.

Input: Hello
Base64: SGVsbG8=
Decoded: Hello

Encode or decode text with the Base64 tool

Why Base64 uses padding

Base64 processes three input bytes into four characters. An equals sign (=) can pad the final group when the byte count is not divisible by three. Some systems omit padding, so check the receiving application's requirements.

Standard versus URL-safe Base64

Standard Base64 uses + and /. URL-safe Base64 substitutes - and _, and some formats omit trailing equals signs. ByteKitly's text decoder uses the browser's standard Base64 decoder; it is not a dedicated URL-safe Base64 converter. Normalize URL-safe input before decoding when necessary.

Common decoding problems

Where Base64 appears

Developers encounter Base64 in MIME email attachments, API payloads, data URLs and binary-to-text transport. Do not put passwords, tokens or secrets in Base64 and assume they are hidden.

Related tools

Use URL encoding for percent-encoding URL text, or the JWT decoder to inspect the readable parts of a JSON Web Token.