Encoders & Decoders
Base64 turns binary data into plain ASCII text so it can pass through systems that only handle text: JSON payloads, email bodies, HTML attributes, HTTP headers and environment variables. You run into it when you inline a small icon into CSS, read a JWT, inspect an email attachment, or store a file in a database column that only accepts strings.
These tools cover the common cases. Encode text to Base64, decode a Base64 string back to readable text, turn an image file into a data URI for an img tag or a CSS background, and convert a Base64 string back into an image you can view and download. The image tools show the resulting size. Check that number before you inline an image: Base64 adds roughly 33%, so a 30 KB PNG becomes about 40 KB of text.
HTML entities solve a related problem with a different alphabet. The encoder escapes <, > and & so a stray bracket renders as a character instead of opening a tag. The decoder turns a page full of &amp; and &#8217; back into readable punctuation, which covers most of what you need after a CMS export or a scrape.
Everything runs on the browser's built-in APIs, so files stay on your machine. That matters when the image is a customer document or the text is a credential.
-
Base64 Encoder
Encode text or files to Base64, with full UTF-8 and emoji support.
-
Base64 Decoder
Decode Base64 to readable UTF-8 text.
-
Image to Base64
Convert an image to a Base64 data URI for HTML or CSS.
-
Base64 to Image
Preview a Base64 string or data URI as an image and download it.
-
HTML Encoder
Escape text into HTML entities: named, decimal or hex.
-
HTML Decoder
Turn HTML entities such as & and ’ back into plain text.
-
Text to Binary Converter
Convert text to UTF-8 bytes in binary, hex, decimal or octal, and back.
-
JSON Escape / Unescape
Escape text into a JSON string, or unescape one back to plain text.
-
String Escape / Unescape (Backslash)
Escape or unescape string literals for JS, Python, PHP, Bash, SQL and regex.
-
Hex to Text Converter
Decode hex bytes to UTF-8 text, or encode text as hex.