Base64 Encoder & Decoder - Encode and Decode Base64 Online

Free online Base64 encoder and decoder. Convert text to Base64 and decode Base64 to text instantly. Supports file encoding and URL-safe Base64.

Base64 Quick Reference

  • • Base64 uses A-Z, a-z, 0-9, +, and / (64 characters total)
  • • Output is padded with = to make length a multiple of 4
  • • Base64 increases data size by approximately 33%
  • • URL-safe Base64 uses - instead of + and _ instead of /

About This Tool

What is Base64?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for encoding data that needs to be transmitted over text-based protocols like email (MIME) or stored in text formats like JSON and XML.

Common Use Cases

• Embedding images in HTML/CSS (data URIs)
• Encoding email attachments (MIME)
• Storing binary data in JSON/XML
• Basic authentication headers
• Encoding data for URLs

URL-Safe Base64

Standard Base64 uses + and / characters which have special meaning in URLs. URL-safe Base64 replaces these with - and _ to make the output safe for use in URLs without encoding.

Frequently Asked Questions

What is Base64 encoding?

Base64 encoding converts binary data into a text format using 64 printable ASCII characters (A-Z, a-z, 0-9, +, /). It's used when you need to transmit binary data over systems that only support text.

Is Base64 encryption?

No, Base64 is encoding, not encryption. It doesn't provide any security - anyone can decode Base64 data. If you need security, use proper encryption (like AES) before Base64 encoding.

Why does Base64 increase file size?

Base64 converts every 3 bytes of binary data into 4 ASCII characters. This results in approximately 33% larger output. Plus padding characters (=) may be added.

What is URL-safe Base64?

URL-safe Base64 replaces + with - and / with _ to avoid URL encoding issues. It's used for data that will be included in URLs or filenames.

Can I encode files with this tool?

Yes, you can encode files by selecting a file in the File tab. The tool supports images, PDFs, and other file types. The encoded output can be used as data URIs.

Is my data secure?

Yes, all encoding and decoding happens entirely in your browser. Your data never leaves your device and is never sent to any server.

Related Tools

Free Color Picker - HEX RGB HSL Converter & Palette Generator

Free online color picker with format conversion. Convert between HEX, RGB, HS...

Free Diff Checker - Text Compare Tool

Free online diff checker. Compare two text files side by side or inline. Find...

Free Hash Generator - MD5 SHA-256 SHA-512 HMAC Calculator

Free online hash generator. Calculate MD5, SHA-1, SHA-256, SHA-512 hashes. Ge...

Free JSON Formatter & Validator Online - Pretty Print JSON

Free online JSON formatter, validator, and beautifier. Format, minify, and va...

Free JWT Encoder / Decoder - Sign, Verify & Inspect Tokens

Free online JWT Decoder and Encoder. Decode, inspect, verify signatures, edit...

Free Lorem Ipsum Generator - Paragraphs, Sentences, Words

Free online Lorem Ipsum placeholder text generator. Generate paragraphs, sent...

Free Online QR Code Generator - Create Custom QR Codes

Free online QR code generator. Create QR codes for URLs, text, WiFi, vCards. ...

Free & Unlimited TikTok Video Downloader Without Watermark

Download any TikTok video without watermark online for free. Fast, secure, an...

Free Unix Timestamp Converter Online - Epoch Time Tool

Free online Unix timestamp converter. Convert epoch time to date, seconds to ...

Free URL Encoder Decoder Online - Encode & Decode URLs

Free online URL encoder and decoder. Encode special characters for URLs or de...

Free UUID Generator Online - v1, v4, v5, v7 & Bulk Generate

Free online UUID/GUID generator. Generate UUID v1, v4, v5, v7 and Nil UUIDs. ...

Free Word Counter - Character & Text Analyzer

Free online word counter and text analyzer. Count words, characters, sentence...