🔒

Base64 Encoder & Decoder

Encode and decode Base64 and URL Encoding for developers.

0 characters

The result will appear here...

Quick examples

What is Base64 Encoder & Decoder?

Encodes and decodes text in Base64. Base64 is used to embed binary data in text formats (emails, JSON, URLs), in image data URIs and in authentication tokens. This tool works both ways and is safe with Unicode.

How to use

  1. Paste text to encode OR Base64 to decode.
  2. Pick the direction.
  3. The result updates in real time.
  4. Handles accents and emojis without issues.

What is Base64?

Base64 is an encoding scheme that converts binary data into ASCII text using 64 printable characters (A–Z, a–z, 0–9, +, /). It is widely used to transmit binary data (such as images) over text-based protocols.

JWT tokens

JWT token payloads are encoded with Base64URL

Data URIs

Images embedded in HTML/CSS use Base64

REST APIs

HTTP Basic Auth uses Base64 for user:password

Email

Email attachments are transmitted in Base64 (MIME)

Is Base64 encryption?

No. Base64 is just an encoding, not encryption. Anyone can decode it easily. Use it for data transmission, not for security.

What is the difference between Base64 and URL Encoding?

URL Encoding (percent-encoding) converts special characters to %XX format, safe for use in URLs. Base64 converts binary data into readable text, useful for transmission.

Where is Base64 used?

In JWT tokens, Data URIs (images embedded in HTML/CSS), HTTP Basic Auth, and email attachments (MIME).

Related tools