Base64 Converter

Encode and decode text to Base64 instantly. UTF-8 compatible with an optional URL-safe variant for links.

100% in your browser — nothing is sent to any server

Encode / decode


            
          

What is Base64?

Base64 is an encoding method that represents binary data as plain text using a 64-character alphabet: A-Z, a-z, 0-9, +, and /. Input bytes are grouped into blocks of 3 bytes (24 bits) and split into four 6-bit values mapped to readable characters. If the byte count is not divisible by 3, padding = characters are added.

Common uses

  • Data URIs: embed images or fonts directly in HTML/CSS as text.
  • JWT: JSON Web Tokens encode their payload in Base64Url.
  • Email attachments: MIME format uses Base64 to send binary files by email.

Frequently asked questions

What is Base64?

Base64 is an encoding scheme that turns binary data into a text string made of 64 printable characters: uppercase and lowercase letters, digits, and the + and / symbols. Every group of 3 bytes is represented as 4 Base64 characters.

Is Base64 encryption?

No. Base64 does not encrypt or protect data; it only transforms it so it can be sent over text-only channels. Anyone can decode it without a password.

Does it support accents and emoji?

Yes. This tool uses TextEncoder/TextDecoder with UTF-8, so it handles accents, non-ASCII characters, emoji, and any Unicode text.

What is URL-safe Base64?

It is a Base64 variant that replaces + with -, / with _, and removes trailing = characters, making the string safe to use in URLs and query parameters without escaping.

Is my text sent to a server?

No. All conversion happens in your browser; the text never leaves your device.