Base64 Encode/Decode
Encodes text or small files into Base64 strings and decodes them back with automatic MIME-type detection for binary safety. Code never leaves your device — formatting and validation run locally in your browser.
How to Use the Base64 Encode/Decode
Similar Tools You Might Need
See allHTML Entity Encoder / Decoder
Encode special HTML characters into entities (& < >) or decode them back to readable text — display code safely and neutralize injection vectors.
URL Encoder / Decoder
Encode or decode URLs with percent-encoding. Swaps input/output for quick bidirectional conversion. Code never leaves your device — formatting and validation run locally in your browser.
Regex Tester
Provides an interactive environment where users can write a regular expression pattern, test it against sample strings, and view real-time match. Code never leaves your device — formatting and validation run locally in your browser.
Text ↔ Binary Converter
Convert between plain text and binary in both directions — encode text into its base-2 representation or decode binary strings back to readable text, byte by byte. Files are converted locally in your browser — nothing is uploaded.
Binary to Text
Decode binary strings back to readable Unicode text with strict validation. Recover messages from bit dumps — local decoding, free, no signup.
Frequently Asked Questions
When should I use Base64?
Embedding small images in CSS/HTML data URIs, passing binary through JSON APIs, and encoding credentials for Basic auth headers. It is an encoding, not encryption — anyone can decode it.
Why is the output ~33% larger?
Base64 maps every 3 bytes to 4 ASCII characters by design. A 3MB file becomes ~4MB of text — fine for small assets, wasteful for large ones.
How do data URIs work?
Prefix the output like data:image/png;base64,iVBOR… and browsers render it inline. Handy for single-file HTML exports and email signatures with tiny logos.
Does it handle Unicode text?
Yes — text is UTF-8 encoded before conversion, so emoji and non-Latin scripts round-trip correctly, unlike naive btoa() snippets that corrupt them.
When using Base64 Encode/Decode, are my files uploaded?
No. Encoding runs entirely in your browser. Files and text never leave your device.
Which of the 10 schemes handle emoji?
The Scheme menu lists 10: Base64, Base64URL, URL, HTML Entity, Hex, Binary, ROT13, UTF-8, Unicode Escape and Backslash Escape. Base64 and Base64URL call btoa() directly, so non-Latin-1 text errors with 'use the UTF-8 scheme for Unicode/emoji' - pick UTF-8 hex bytes or Unicode Escape (\u plus 4 hex digits) instead. Hex uses 2 digits per char, Binary 8 bits per char.
Related Developer Tools
Random Port Generator
Generate random TCP/UDP port numbers from well-known, registered, or dynamic ranges. Useful for network testing, Docker port mapping, and firewall configuration.
Chmod Calculator
Convert between numeric (755) and symbolic (u=rwx,g=rx,o=rx) chmod permission formats. See detailed breakdown for owner, group, and others.
Docker Run to Compose Converter
Convert docker run commands to docker-compose.yml format. Supports ports, volumes, environment variables, networks, restart policies, and container names.
Email Normalizer
Normalize email addresses by removing dots (Gmail), stripping +tags, and lowercasing. Process multiple emails at once for deduplication and cleaning.
Diff Checker
Compares two input texts side-by-side, highlighting inserted, deleted, and changed lines with distinct background colors. Code never leaves your device — formatting and validation run locally in your browser.
IP Address Lookup
Displays your public IPv4 and IPv6 addresses with geolocation data (city, ISP, ASN, timezone). Network engineers use it to verify VPN connectivity. Uses cloud-based processing.
Last updated October 2026