Base64 Encode/Decode Tool

Quickly encode text to Base64 or decode Base64 back to text with our powerful online tool

Input

Options

Output

Operation: --
Input size: --
Output size: --
Processing time: --

πŸ“š About Base64 Encoding

πŸ”’

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation.

🌐

Common Uses

Used in email (MIME), embedding binary files in text (like images in HTML/CSS), and encoding authentication credentials.

βš™οΈ

How It Works

Every 3 bytes (24 bits) of binary data is converted into 4 ASCII characters from a set of 64 (A-Z, a-z, 0-9, '+', '/').

πŸ”’

URL-Safe Variant

Standard Base64 uses '+' and '/' which need encoding in URLs. The URL-safe version replaces these with '-' and '_'.

πŸ“‹ Base64 Examples

Original Text:
Hello, World!
Base64 Encoded:
SGVsbG8sIFdvcmxkIQ==
Original JSON:
{
  "name": "John Doe",
  "age": 30,
  "city": "New York"
}
Base64 Encoded:
ewogICJuYW1lIjogIkpvaG4gRG9lIiwKICAiYWdlIjogMzAsCiAgImNpdHkiOiAiTmV3IFlvcmsiCn0=
Image Data (simplified):
PNG header + binary data
Base64 Encoded (first part):
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC...
Basic Auth Credentials:
username:password
Base64 Encoded:
dXNlcm5hbWU6cGFzc3dvcmQ=
Dark Mode

Note: This tool processes your data locally in your browser. No information is sent to any server, ensuring complete privacy for your sensitive data.