HTML Entity Encoder

Encode text to HTML entities safely

Source Input
Processed Output

What is the HTML Entity Encoder?

HTML encoding converts reserved HTML characters into corresponding character entities (e.g., `<` becomes `&lt;`). This prevents browsers from interpreting input as markup.

Frequently Asked Questions (FAQ)

Q: How does HTML encoding prevent XSS?

By turning `<script>` tags into plain text representations (`&lt;script&gt;`) so the browser displays it instead of running it.