Base64 Encode & Decode Online

Encode text to Base64 or decode Base64 back to text โ€” UTF-8 safe, with URL-safe Base64 support. Runs in your browser.

Last updated:

Base64 encoder and decoder

Need to put text into a data URL, an HTTP header or a config file โ€” or read a Base64 string you found in an API response or a token? This Base64 encoder/decoder converts in both directions as you type. It'sUTF-8 safe, so Hindi, Tamil and emoji survive the round trip, and supportsURL-safe Base64 used by JWTs and web tokens. Nothing you paste leaves your browser.

How to use it

  1. Choose Encode or Decode.
  2. Type or paste your text or Base64.
  3. Copy the result โ€” or Swap to reverse it.

Example

โ€œHelloโ€ encodes to SGVsbG8=. HTTP Basic authentication sends user:password as Base64 โ€” which is why it must only be used over HTTPS. For images, use image to Base64; to read a token's contents, use the JWT decoder.

Rate this tool

Frequently asked questions

What is Base64 encoding?
A way to write any data using only 64 safe characters (Aโ€“Z, aโ€“z, 0โ€“9, + and /). Itโ€™s used to send binary data or special characters through systems that only handle plain text โ€” email attachments, data URLs, API tokens and HTTP Basic authentication.
Is Base64 encryption?
No. Anyone can decode Base64 instantly โ€” it hides nothing. Never use it to protect passwords or secrets.
What is URL-safe Base64?
A variant that replaces + with -, / with _ and drops the = padding, so the result can sit in a URL or filename without escaping. JWTs use it. The decoder here accepts both kinds.
Does it handle Hindi and emoji?
Yes. Text is converted to UTF-8 bytes before encoding, so any language and emoji round-trip correctly.