Base64 Encoder/Decoder
Encode and decode text or files using Base64, URL-safe Base64, or Base32. Includes hex view for binary inspection.
Mode
Format
Text Input
File Upload
Drop a file here or click to browse
Encoded Input
Result
CLI Quick Reference
How It Works
Base64 (RFC 4648)
Base64 encodes binary data into ASCII text using 64 characters: A-Z, a-z, 0-9, +, /. Every 3 input bytes become 4 output characters, resulting in ~33% size increase. Padding = is added when input length isn't a multiple of 3.
URL-Safe Base64
Replaces + with - and / with _, making the output safe for URLs, filenames, and query parameters without percent-encoding.
Base32 (RFC 4648)
Uses 32 characters: A-Z and 2-7. Every 5 input bytes become 8 output characters (~60% overhead). Case-insensitive and avoids confusing characters (0/O, 1/I), making it suitable for human-readable tokens and TOTP secrets.
Common Uses
- Email: MIME attachments
- Data URIs: Embed images in HTML/CSS
- JWT: Token payload encoding
- APIs: Binary data in JSON
- SSH keys: Key file encoding
- Authentication: Basic Auth headers
Size Comparison
- Base64: 33% overhead (3 bytes → 4 chars)
- Base32: 60% overhead (5 bytes → 8 chars)
- Hex: 100% overhead (1 byte → 2 chars)
Alphabet
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
Example: "Hello" → "SGVsbG8="
Related Utils
Feedback
Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.
Sending...
Feedback sent. Thank you!
Error occurred!
-
-
-
-
-
-
-
-
-
- API Response
- ASCII Table
- Code Bug Detector
- Code Explanation
- CSS Beautifier
- Env Parser
- GraphQL Query
- Syntax Highlight
- HTML Beautifier
- JS Beautifier
- JSON Formatter
- JSONPath
- JWT Decoder
- JS keyCodes
- API Lorem Ipsum
- RegExp
- Regex Library
- Semver Compare
- SQL Beautifier
- TOML Formatter
- Code Unminifier
- XML Beautifier
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Amortization
- Break-Even
- Compound Interest
- Crypto Profit/Loss
- Debt Payoff
- Discount
- Effective Interest
- Emergency Fund
- Inflation Calculator
- Simple Interest
- Invoice Calculator
- IRR Calculator
- Mortgage
- NPV Calculator
- Portfolio
- Profit Margin
- Rent vs Buy
- Retirement Calc
- ROI Calculator
- Salary vs Hourly
- Savings Goal
- Tax Calculator
- VAT
-
-
-
-
-
-
-
-
-
- Equation Solver
- Exponent Calculator
- Factorial Calculator
- Fibonacci Sequence Generator
- Fraction Calculator
- Fraction Simplifier
- GCD Calculator
- GCD/LCM
- Least Common Multiple (LCM) Calculator
- Logarithm Calculator
- Magic Square
- Matrix Calculator
- Number Base Converter
- Pascal's Triangle
- Prime Number
- Prime Factorization
- Prime Number Checker
- Roman Numeral Converter
- Scientific Notation Converter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Broken Link Checker
- Canonical URL
- Canonical URL Checker
- Core Web Vitals Checker
- Favicon
- Heading Structure
- Keyword Density
- Meta Tag Generator
- Meta Tag
- Mobile-Friendly Test
- Open Graph
- Open Graph Tag Generator
- Page Load Time Analyzer
- Redirect Checker
- robots.txt
- Robots.txt Analyzer
- Structured Data
- XML Sitemap
- Structured Data Generator
- Time on Page Tracker
- Page Title & Desc.
- Twitter Card Generator
- XML Sitemap Generator
-
-
-
-
-
-
- Acceleration
- Substance Amount
- Angle
- Area
- Astronomical
- Base Converter
- Capacitance
- Electric Charge
- Cooking
- Data Transfer
- Data Storage
- Density
- Energy Converter
- Force Converter
- Frequency Converter
- Fuel Economy
- Illuminance
- Inductance
- Length / Distance
- Power
- Pressure
- Electrical Resistance
- Time
- Speed
- Temperature
- Viscosity
- Volume
- Weight
-
-
-
-