🔐

Base64 / URL / HTML Encoder

Encode and decode text in three formats

When to use which encoding

Different contexts require different encodings. Base64 transforms binary data into ASCII text (used for inline images in HTML, JWT tokens, email attachments). URL encoding makes text safe to insert in a URL (spaces become %20, special characters are escaped). HTML entities prevent injection and correctly display characters like < and > in markup.

Use cases

  • Base64: image embedding, JWT, MIME email, data URI
  • URL encoding: query strings, API parameters, redirects
  • HTML entities: displaying code in a page, preventing XSS

Frequently asked questions

Can I decode any Base64?

Yes, if it is valid Base64. Our decoder correctly handles Unicode (UTF-8) characters too, unlike many naive implementations.