Tool Hub

HTML Entity Encoder

Encode and decode HTML entities (<, >, & ...)

Encode special characters to HTML entities or decode entities back to plain text. Handles named entities and numeric forms (&#x..; and &#..;). Paste your markup, toggle encode or decode, and copy the result — all in your browser.

Output

How to use

  1. Select Encode or Decode mode using the segmented control.
  2. In Encode mode, optionally toggle "Also encode non-ASCII characters" to convert characters like é to &#xE9;.
  3. Paste or type your text into the input field.
  4. Copy the result from the output field — all processing runs in your browser.

Examples

  • Encoding "<div>A & B</div>" produces &lt;div&gt;A &amp; B&lt;/div&gt;.
  • Decoding "caf&#x00E9;" produces "café"; decoding "&lt;script&gt;" produces "<script>".

Verify outputs before using in production. No warranty — see Terms.