64

Base64 Encoder/Decoder

Encode and decode Base64 strings. Supports text and UTF-8 content.

Base64 encoderBase64 decoderencode Base64decode Base64
Plain Text
Base64 Encoded
Encoding Ratio:
Size Change:

What is Base64 Encoder/Decoder?

Base64 Encoder/Decoder converts text and binary data to and from Base64 encoding. Base64 is a binary-to-text encoding scheme that represents binary data in ASCII format, commonly used for embedding images in HTML, sending email attachments, and transmitting data over text-based protocols.

Common Use Cases

Email Attachments

Understand how email systems encode attachments using Base64.

Data URIs

Convert small images to Base64 for embedding in HTML/CSS.

API Payloads

Encode binary data for JSON API request bodies.

JWT Tokens

Decode the Base64-encoded parts of JWT tokens for inspection.

How to Use This Tool

  1. Paste your text or Base64-encoded string
  2. Click "Encode" to convert text to Base64
  3. Click "Decode" to convert Base64 back to text
  4. Copy the result for use in your project

Frequently Asked Questions

Why does Base64 increase size?
Base64 encoding increases data size by approximately 33% because it converts 3 bytes to 4 ASCII characters.
Is Base64 encryption?
No! Base64 is encoding, not encryption. It provides no security and can be easily decoded by anyone.
What is URL-safe Base64?
URL-safe Base64 replaces + with - and / with _ to avoid URL encoding issues when passing Base64 in URLs.