</>DevTools

&;HTML Entity

Encode/decode HTML entities

What is HTML Entity Encoding/Decoding?

HTML entities are a way to safely display characters that carry special meaning in HTML documents — such as <, >, &, and ". They are essential for preventing XSS (cross-site scripting) attacks when rendering user input on a web page, or for displaying raw HTML source code on screen.

How to Use

  1. Select Encode to encode, or Decode to decode.
  2. Paste the HTML text or entity string you want to convert into the input field.
  3. Click Convert to see the conversion result.
  4. Press the copy button to copy the result to your clipboard.