HTML Entity Encoder / Decoder

Convert special characters to HTML entities and back. Named, numeric and hex formats — all in your browser.

HTML entities · Named, numeric & hex · 100% client-side
Format:
Plain Text / HTML 0 chars
Encoded HTML 0 chars
Common HTML Entities Reference
CharNamedNumericHexDescription

How to Encode & Decode HTML Entities

What are HTML entities?

HTML entities are special codes that represent characters with reserved meaning in HTML or characters that cannot be typed directly. For example, & represents an ampersand, < a less-than sign, and © the copyright symbol.

How to encode plain text

Paste your plain text or HTML content into the left panel and click Encode. The tool converts all HTML-sensitive characters (&, <, >, quotes) and any extended Unicode characters into safe HTML entity codes. Use the Format buttons to choose Named, Numeric, or Hex output.

How to decode entities back to text

Click Decode to switch modes, then paste your HTML-encoded text. The tool resolves all entity references back to their original characters instantly. Use Swap to flip the input and output panels in one click.

Which format should I choose?

  • Named โ€” human-readable (e.g., &amp;, &copy;). Best for code readability.
  • Numeric (decimal) โ€” universal (e.g., &#38;). Supported everywhere including XML.
  • Hex โ€” compact hex notation (e.g., &#x26;). Common in CSS and XML contexts.

FAQ

Is my text sent to a server?

No. ToolsPix HTML Entity Encoder runs entirely in your browser. Your input is never transmitted to any server, never logged, and never stored outside your device.

What encoding formats does the tool support?

Three formats are available: Named entities (e.g., &amp;), Numeric decimal entities (e.g., &#38;), and Hex entities (e.g., &#x26;). Switch between them with the Format buttons โ€” the result updates instantly.

Which characters get encoded?

In Encode mode, the five HTML-sensitive characters (&, <, >, ", ') are always encoded, plus any character with a Unicode code point above U+007F. Standard ASCII printable characters pass through unchanged.

How do I decode HTML entities?

Click the Decode button to switch modes, paste your HTML-encoded text into the left panel, and the decoded plain text appears instantly. Use the Swap button to quickly reverse the panels in one click.

Does it support Unicode and special symbols?

Yes. Common symbols like ©, ®, ™, €, and directional arrows have named entity equivalents. All other Unicode code points are encoded as numeric or hex entities covering the full Unicode range.

Related Tools