HTML Encoder & Decoder Online

Encode special characters to HTML entities or decode HTML entities back to plain text. Free online tool.

What are HTML Entities?

HTML entities are special codes used to represent characters that have special meaning in HTML. For example, < represents <, & represents &, and " represents ". Encoding prevents browsers from interpreting these characters as HTML tags.

When to use HTML encoding?

Use HTML encoding when displaying user-generated content on a web page to prevent XSS attacks, or when you need to show HTML code as text rather than rendered markup.