Hanpy's Blog

Type at least two characters.

Base64 encoder & decoder

Convert text to Base64 and back instantly, including UTF-8 text and the URL-safe variant used by JWTs.

🔒 Processed in your browser only — your input is never sent to a server or stored.

Result · 40 bytes
SGVsbG8sIEhhbnB5ISDslYjrhZXtlZjshLjsmpQ=
Advertisement

How to use

  1. Choose Encode (text → Base64) or Decode (Base64 → text).
  2. Paste your input and the result appears below as you type.
  3. When encoding, turn on URL-safe to use - and _ instead of + and /, without = padding (base64url).
  4. Press Copy to copy the result, or ⇅ to move the result into the input and convert it back.

FAQ

Is my input sent to a server?

No. Encoding and decoding run entirely in your browser, and nothing is uploaded or stored. This tool does not create share links either.

Is Base64 encryption?

No. Base64 only rewrites bytes using 64 characters, and anyone can turn it back into the original. Never use it to hide passwords or keys.

Which character encoding is used for text?

Text is converted to UTF-8 bytes before encoding, and decoded output is read as UTF-8. Tools that use another character set will give different results for non-ASCII text.

What is URL-safe Base64 (base64url)?

A variant defined in RFC 4648 that replaces + and / with - and _ and usually drops the = padding, so the value can be used in URLs and file names. Each part of a JWT uses it. The decoder accepts both variants.

What if the decoded data is not text?

If the bytes are not valid UTF-8 (for example an image), the tool shows the byte count and the first 64 bytes in hexadecimal.

Advertisement