HTML Entity Encoder


How to perform HTML entity encoding?

HTML entity encoding is designed to protect HTML reserved characters used in HTML element contents or attribute values. For example, without HTML entity encoding the following HTML code will not work:

Question: Is single quote smaller than double quote: ' < "?<br>
Answer: <input value="' < " = true"> has designed this online tool for you to perform HTML entity encoding. All you need to do is to enter a string, and click the "Encode" button. Encoded output will be displayed in the result area.

Original Data:



Converted result by

HTML Entity Encoded Data:

What HTML entities are used in the encoding?

When performing HTML entity encoding, each reserved character is converted to HTML entity sequence:

  • '&' (ampersand) becomes '&amp;'
  • '"' (double quote) becomes '&quot;'
  • '<' (less than) becomes '&lt;'
  • '>' (greater than) becomes '&gt;'


HTML Entity Decoder

URL String Decoder

Data Encoders and Decoders

⇑⇑ Online Tools

2018-01-16, 598👍, 0💬