HTML Entity Encoder

Encoding and decoding HTML entities.

Input data
Result

HTML entities are special codes for characters that have special meaning in HTML (e.g., `<`, `>`, `&`). Encoding prevents incorrect rendering or XSS vulnerabilities when inserting text into HTML.

Why encode text before inserting into HTML?

To avoid conflicts with reserved markup characters and potential XSS attacks when outputting user input.

Is data processed on the server?

No, encoding is performed locally in the browser.