Base64 Encode/Decode
Encodes UTF-8 text into Base64 strings and decodes them back. Emoji and non-Latin scripts round-trip, and ten local schemes cover URLs, HTML entities, hex, binary and escapes. Code never leaves your device.
How to Use the Base64 Encode/Decode
Similar Tools You Might Need
See allEncoder / Decoder
Encode or decode text using Base64, Base64URL, URL encoding, HTML entities, Hex, Binary, ROT13, UTF-8, and Unicode escape schemes.
HTML Entity Encoder / Decoder
Encode special HTML characters into entities (& < >) or decode them back to readable text — display code safely and neutralize injection vectors.
MessagePack Inspector
Encode JSON to MessagePack hex/Base64 or decode Base64 MessagePack back to readable JSON. Local conversion, free, no signup.
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.
SQL to CSV Converter
Parse SQL INSERT statements back into CSV rows — quoted strings unescaped, NULLs emptied, multi-statement appends. Round-trip database dumps back to spreadsheets — local parsing, 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 3KB string becomes about 4KB of text — fine for small snippets, wasteful for large payloads.
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, is my text uploaded?
No. Encoding runs entirely in your browser. This page accepts text only — there is no file upload and nothing leaves 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 encode UTF-8 bytes; URL emits percent-encoded UTF-8; Hex and Binary use Unicode code points; UTF-8 emits hex bytes. All of them preserve emoji.
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 lowercasing and trimming, with Gmail-specific dot removal and +tag stripping. Process multiple emails at once, with format and disposable-domain checks.
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
Look up a pasted IPv4 or IPv6 address for city, country, ISP, ASN and timezone. Leave the field empty to resolve your own public IP. Useful for checking VPN egress; the queried address goes to ipapi.co.
Last updated October 2026