Base64 Encode

Convert text or binary data to Base64 encoded string for safe transmission.

Encode text as Base64. The text is converted to UTF-8 first, so accented letters, other alphabets and emoji all encode correctly. Tick URL-safe to use - and _ instead of + and / and drop the = padding, for use in URLs, file names and JWTs, or wrap lines at 76 characters for MIME email. Encoding happens in your browser as you type.

Need the reverse? Base64 Decode

Common use cases

  • Encode text for an HTTP header, data URL or API field
  • Make URL-safe Base64 for tokens and links
  • Prepare Basic authentication values (username:password)
  • Check what a string looks like in Base64

How to use

  1. Type or paste the text to encode.
  2. Tick URL-safe or line wrapping if you need them.
  3. Copy the Base64 output.

FAQ

Is Base64 encryption?

No. Base64 only changes how data is written, so anyone can decode it. Don't use it to hide passwords or secrets.

Why is Base64 longer than the original?

Every 3 bytes become 4 characters, so Base64 is about a third larger than the data it encodes.

What is URL-safe Base64?

A variant that uses - and _ in place of + and /, which have special meanings in URLs, and usually leaves off the = padding at the end.