Base64 Encoder / Decoder
Encode text or files to Base64, or decode Base64 strings. Supports standard and URL-safe variants, binary files, line wrapping, and hex view.
âšī¸ About Base64 Encoding
Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). Every 3 bytes of input become 4 characters of output (~33% size increase).
Common uses:
- Embedding images in HTML/CSS (data URLs)
- Email attachments (MIME encoding, 76-char lines)
- Transmitting binary data in JSON/XML APIs
- PEM certificates and keys (64-char lines)
- JWT tokens (URL-safe variant, no padding)
Variants: Standard (RFC 4648 Section 4) uses +/=. URL-safe (Section 5) uses -_ without padding.
Frequently Asked Questions
đ Related Articles
JSON Formatting Guide: Validate, Format & Debug Like a Pro
Complete guide to JSON formatting, validation, and debugging. Learn common JSON errors, best practices, and tools to work with JSON data efficiently.
JWT Tokens Explained: What Every Developer Should Know
Understand JSON Web Tokens from the ground up. Structure, signing, validation, security best practices, and common pitfalls in authentication.
Related Tools
Image to Base64 Converter
Convert images to Base64 encoded strings and data URIs. Supports PNG, JPEG, GIF, WebP, and SVG. No upload, fully private.
JSON Formatter
Format, validate, and minify JSON data with syntax highlighting.
Regex Tester
Test and debug regular expressions in real-time. Matches highlighted, capture groups, replacements.
CSV to JSON Converter
Convert CSV data to JSON arrays and JSON arrays back to CSV. Custom delimiters supported.
Text Diff Checker
Compare two texts and see additions, removals, and unchanged lines highlighted side by side.
Cron Expression Parser
Parse and understand cron expressions. See next run times and get a human-readable description of any cron schedule.