Skip to content

Base64 Encoder/Decoder

Encode and decode Base64 as you type: text, files, URL-safe and JWT strings, and data URIs. Runs in your browser.

13 chars
Base6413 bytes → 20 chars(+54%)
3 bytes → 4 characters, 6 bits each
H 72e 101l 108
010010000110010101101100
SGVs

First group shown; every 3 bytes work the same way.

Runs locally in your browser: your text and files never leave your device. Drop a file anywhere on the two boxes.

Frequently Asked Questions

What is Base64 encoding?

Base64 is a method of encoding binary data into ASCII text format. It's commonly used to transmit data over systems that only support text, such as embedding images in HTML or CSS, or sending attachments in email.

Is Base64 encoding secure?

No, Base64 is NOT a security feature. It's simply an encoding scheme, not encryption. Anyone can decode Base64 text back to its original form. Never use it to hide sensitive information.

When should I use Base64 encoding?

Common use cases include: embedding images in HTML/CSS, encoding binary data for JSON APIs, storing complex data in URLs, and transmitting files through text-only systems.

Why does Base64 increase file size?

Base64 encoding increases the size of data by approximately 33% because it represents every 3 bytes of binary data as 4 ASCII characters.

Can I encode images and files?

Yes! This tool supports file uploads. When you upload a file in encode mode, its contents are loaded into the input box and encoded live.