Base64 Encoder & Decoder

Encode UTF-8 text or hex bytes to standard or URL-safe Base64 and decode with strict alphabet and padding checks.

Options

Input

Ctrl + Enter to run

Result

Encode text (as UTF-8 bytes) or hex bytes to Base64, and decode Base64 back to text or hex. Choose the standard variant (+ and /) or the URL-safe one (- and _) used by JWT and many APIs.

Decoding is strict: it rejects characters outside the alphabet, misplaced padding, impossible lengths and non-zero leftover bits, and tells you where the problem is. If the bytes are not valid UTF-8, you can view them as hex.

How to use it

  1. Choose Encode or Decode and the variant.
  2. Paste the text or Base64 (MIME line breaks are ignored).
  3. Press Run and copy the result.

Example

Example input
Hola, UtiliGo! ¿Qué tal? 👋
Result
SG9sYSwgVXRpbGlHbyEgwr9RdcOpIHRhbD8g8J+Riw==

Limitations

  • Base64 is not encryption: anyone can decode it.
  • For binary files use hex input; the tool does not read images or binary files directly.
  • 5 MiB text limit.

FAQ

What is the difference between Base64 and Base64url?
Base64url replaces + with - and / with _ so it can be used in URLs and file names, and usually omits the “=” padding.
Why does “SGVsbG8” decode but “SGVsbG9” does not?
Because in the second one the leftover bits of the last character are not zero: it is not canonical Base64. Many decoders accept it silently; here it is flagged.

Related tools

References