HTML Entity Converter

Convert special characters to HTML entities (encode) or decode HTML entities back to regular characters. Essential for web development and content publishing.

Advertisement

Examples

Encode HTML

Input:

<b>Hello</b>

Output:

&lt;b&gt;Hello&lt;/b&gt;

Decode entities

Input:

&amp; &lt; &gt;

Output:

& < >

How to Use HTML Entity Converter

  1. 1Paste your text
  2. 2Choose Encode or Decode
  3. 3Copy the result

Frequently Asked Questions

What characters are encoded?

Special characters like < > & " ' are converted to their HTML entity equivalents.

Is this safe for XSS prevention?

HTML encoding is a key defense against XSS attacks when inserting user content into HTML.