🌐 Hosting
🌐
Hosting Checker
💰
Price Comparator
📦
Migration Checklist
💵
Cost Calculator

🔍 DNS & Network
🔍
DNS Lookup
🌍
DNS Propagation
📡
IP Lookup / WHOIS
🔌
Port Checker

🔒 Security
🔒
SSL Checker
🛡️
HTTP Header Checker
🔑
Password Generator
🤖
Robots.txt Generator

⚡ Performance
Speed Tester
⏱️
TTFB Tester
📡
Ping Tool
📊
Uptime Checker
📸
Screenshot Tool

</> Developer
{ }
JSON Formatter
64
Base64 Encoder
/./
Regex Tester
Cron Generator
📝
.htaccess Generator

☁️ Server & Cloud
🐘
PHP & MySQL Checker
☁️
AWS Cost Calculator

Encode & Decode
Base64 Online

Convert text and files to Base64 — and back. URL-safe mode, live conversion, file support.

OPTIONS:
PLAIN TEXT INPUT
BASE64 OUTPUT
📁
Encode a File to Base64
Drop a file here, or click to select. Images, PDFs, any file type.

Base64 Encoder & Decoder — Free Online Tool

Base64 is an encoding scheme that converts binary data into a text string using 64 ASCII characters. It's widely used to transmit binary data over text-based systems like email, embed images in HTML and CSS, and store binary data in JSON or XML.

When do you need Base64?

URL-Safe Base64

Standard Base64 uses + and / characters that have special meaning in URLs. URL-safe Base64 replaces these with - and _ respectively, making the output safe to use in URLs and filenames without percent-encoding.

Frequently Asked Questions

Is Base64 the same as encryption? +
No. Base64 is an encoding scheme, not encryption. It's easily reversible and provides no security. Never use Base64 to "hide" sensitive data — anyone can decode it instantly. For security, use proper encryption like AES.
Why does Base64 output end with == or =? +
Base64 encodes 3 bytes at a time into 4 characters. If the input isn't a multiple of 3 bytes, padding characters (=) are added to make the output length a multiple of 4. One = means 1 byte of padding; == means 2 bytes.
How much larger is Base64 than the original? +
Base64 increases data size by approximately 33%. Every 3 bytes become 4 characters. This overhead is usually acceptable for small payloads but worth considering for large files or high-volume APIs.
Can I encode images to Base64? +
Yes. Use the file encoder section above to select any image file. The output can be used directly in HTML as: <img src="data:image/png;base64,YOUR_BASE64_HERE"> or in CSS as a background-image URL.
What's the difference between btoa() and Base64? +
btoa() is the browser's built-in JavaScript function for Base64 encoding, but it only handles Latin-1 characters and will throw errors on Unicode text. Our tool handles full Unicode encoding by using TextEncoder internally, making it safe for all languages and special characters.