HTML Entity Encoder/Decoder

Encode special HTML characters to entities and decode them back to text. Browse the complete entity reference table. Free, instant, 100% private.

About HTML Entities

HTML entities are special codes that represent characters reserved in HTML or that are difficult to type directly:

  • Named entities:  , <, >, & — human-readable names
  • Numeric decimal:  , < — decimal character codes
  • Numeric hex:  , < — hexadecimal character codes
  • Common use: Safely display HTML tags in code samples, show special symbols like © ™ €

All processing happens in your browser. Your text never leaves your device.

HTML Entities Reference

Common HTML named entities with their character, entity name, and numeric code.

About HTML Entity Encoder/Decoder

Convert special HTML characters to their entity equivalents and decode them back. Includes a complete reference table of common HTML entities. All processing is done locally in your browser.

Encode to Entities

Convert &, <, >, ", and ' to their HTML entity equivalents. Essential for safe HTML output and code display.

Decode Entities Back

Convert named and numeric HTML entities back to readable characters. Supports named, decimal, and hex entity formats.

Character Count Stats

See how encoding affects string length. Compare source and result character counts to understand the transformation.

Entity Reference Table

Browse a complete table of common HTML named entities with their characters, entity names, and numeric codes.

📋 Common Use Cases

Data URI Generation

Encode images and files as Base64 data URIs for inline embedding in HTML, CSS, or JSON. Reduce HTTP requests for small assets.

API Parameter Encoding

URL-encode query parameters and path segments for safe HTTP transmission. Handle special characters, spaces, and Unicode correctly.

Debugging Encoded Payloads

Decode Base64-encoded JWT payloads, API responses, or configuration strings to inspect their contents during debugging.

Cross-System Compatibility

Encode binary or special-character data for safe transport through systems that only accept ASCII or alphanumeric text.

🪜 How to Use This Tool

  1. Enter text or encoded string
    Paste the text to encode or the encoded string to decode. Most tools auto-detect the direction based on your input.
  2. Select encoding type
    Choose Base64, URL encoding, or other format. Some tools support multiple encoding variants with different options.
  3. View the output
    Result appears instantly. For decoding, verify the output is readable. For encoding, the result is ready to use.
  4. Copy to clipboard
    Copy the result for use in your code, URL, or configuration. Re-encode with different options as needed.

📚 Related Guides

Frequently Asked Questions

Are these dev tools free?
Yes. All dev tools are completely free. No signup, no account.
Is my data sent to a server?
No. Base64 encoding, URL encoding, JWT decoding, hash generation, and regex testing all happen in your browser. Your tokens and secrets stay on your device.
Can I decode JWTs safely?
Yes. JWT decoding happens entirely in your browser. The token never leaves your device. Only the header and payload are decoded — signatures are not verified server-side.