IJM
Data ToolsText & Writing

HTML Entity Encoder / Decoder

Safely encode reserved HTML characters into entities or decode &, <, numeric, and hex entities back to plain text.

Processed in browserNo upload

Guide · Data Tools / Text & Writing

About HTML Entity Encoder / Decoder

Convert reserved HTML symbols (<, >, &, quotes) into named entities or decode named, decimal (&#...;), and hexadecimal (&#x...;) entities back to plain text.

When to use this tool

Helpful when embedding HTML code examples inside documentation or cleaning entity-encoded RSS/API snippets.

How to use HTML Entity Encoder / Decoder

  1. Paste raw markup or entity-encoded text into Input.
  2. Select Encode to HTML Entities or Decode Entities.
  3. Copy the escaped or decoded output.

Supported inputs, options, and outputs

  • Inputs: Input string and Encode/Decode Mode selector.
  • Output: Converted string.

Accuracy notes and limitations

  • Named decoding covers standard common HTML entities (&amp;, &lt;, &gt;, &quot;, &#39;, &nbsp;) plus arbitrary numeric decimal/hex character references.
  • Use framework escaping or a full HTML sanitizer rather than entity encoding alone when rendering untrusted markup attributes.

Privacy and browser processing

All text transformations run strictly in browser JavaScript without sending pasted drafts, identifiers, or transcripts to IJM servers. Hosted pages load cookie-free Vercel Web Analytics and Google Fonts.

Read the full IJM Privacy Policy or browse all Data Tools.

Related Tools

Ranked by matching inputs, outputs, and workflow compatibility

View all 123 in Data Tools →