Base64 Encode & Decode Free: Online Base64 Tool
# Base64 Encode & Decode Free: Online Base64 Tool
Need to encode or decode Base64? Our free online tool converts text and files to/from Base64 instantly.
What is Base64?
Base64 is an encoding scheme that converts binary data into ASCII text. It's commonly used for: - Encoding email atachments (MIME) - Embedding images in HTML/CSS (data URIs) - Encoding API payloads - Encoding authentication credentials (Basic Auth)
Why Use Base64 Encoding?
- **Text-only channels** - Send binary data over text protocols
- **HTML/CSS** - Embed small images directly in code
- **APIs** - Encode binary data in JSON
- **Email** - Atach files via SMTP (text-only)
- **Data URIs** - Reduce HTTP requests
FreeToolbox Base64 Tool
**Features:** - 100% free, no registration - Encode text to Base64 - Decode Base64 to text - File to Base64 (images, PDFs) - Copy to clipboard
**Try it:** [Base64 Encoder/Decoder](/tools/base64-codec)
How to Use
Encode Text to Base64 1. Type or paste text 2. Click "Encode" 3. Copy Base64 output
Decode Base64 to Text 1. Paste Base64 string 2. Click "Decode" 3. Get original text
File to Base64 1. Upload file (image, PDF, etc.) 2. Get Base64 string 3. Use in your code
Common Use Cases
Web Development Embed images in CSS: \css .background { background: url(data:image/png;base64,iVBORw0KGgo...); } \ ### Email Attachments (MIME) Encode attachments for email transmision.
API Development Encode binary data for JSON payloads.
Basic Authentication Encode credentials: \// Original: username:password // Base64: dXNlcm5hbWU6cGFzc3dvcmQ= \ ## Base64 Character Set
| Index | Char | Index | Char | Index | Char | Index | Char |
|---|---|---|---|---|---|---|---|
| 0 | A | 16 | Q | 32 | g | 48 | w |
| 1 | B | 17 | R | 33 | h | 49 | x |
| 2 | C | 18 | S | 34 | i | 50 | y |
| 3 | D | 19 | T | 35 | j | 51 | z |
| 4 | E | 20 | U | 36 | k | 52 | 0 |
| 5 | F | 21 | V | 37 | l | 53 | 1 |
| 6 | G | 22 | W | 38 | m | 54 | 2 |
| 7 | H | 23 | X | 39 | n | 55 | 3 |
| 8 | I | 24 | Y | 40 | o | 56 | 4 |
| 9 | J | 25 | Z | 41 | p | 57 | 5 |
| 10 | K | 26 | a | 42 | q | 58 | 6 |
| 11 | L | 27 | b | 43 | r | 59 | 7 |
| 12 | M | 28 | c | 44 | s | 60 | 8 |
| 13 | N | 29 | d | 45 | t | 61 | 9 |
| 14 | O | 30 | e | 46 | u | 62 | + |
| 15 | P | 31 | f | 47 | v | 63 | / |
Padding: = (used when input length is not divisible by 3)
Base64 Size Increase
| Original Size | Base64 Size | Increase |
|---|---|---|
| 3 bytes | 4 characters | 33% |
| 1 KB | 1.33 KB | 33% |
| 1 MB | 1.33 MB | 33% |
**Note:** Base64 increases data size by ~33%.
Tips for Using Base64
- **Small files only** - Base64 increases size by 33%
- **Use for small images** - Icons, sprites (under 10KB)
- **Don't encode large files** - Use URL/binary upload instead
- **Check padding** - Missing = padding causes decode errors
- **Use data URIs wisely** - Cacheable external files are often better
Privacy & Security
- **No uploads** - All processing in browser
- **No storage** - Data never leaves your device
- **No registration** - No account needed
Comparison with Other Tools
| Tool | Free | No Upload | Privacy | Features |
|---|---|---|---|---|
| FreeToolbox | Yes | Yes | 100% | Encode + Decode + File |
| Other online tools | Limited | No | Low | Encode only |
| Command line | Free | N/A | 100% | Full control |
Frequently Asked Questions
**Q: Is Base64 encryption?** A: No, it's encoding (easily reversible). Not secure for sensitive data.
**Q: What is the = padding for?** A: Padding ensures input length is divisible by 3. Decoders need it.
**Q: Can I encode images?** A: Yes, upload image and get Base64 data URI.
**Q: Is there a size limit?** A: 10 MB per file (browser memory limit).
Start Encoding Now
Ready to encode/decode Base64? Try our free tool:
[Base64 Encoder/Decoder](/tools/base64-codec)