🌐
HTML Encoder / Decoder
Encode and decode HTML entities
About HTML Encoder / Decoder
Characters like <, >, &, and " have special meaning in HTML. If you put them directly in page content, the browser tries to parse them as markup. Encoding them as <, >, &, " tells the browser to render them as text.
This is the basic mechanism behind XSS prevention — user input that contains <script> tags becomes harmless <script> after encoding. The Decoder reverses the process.
Also handles numeric entities (< and < both represent <) and all Unicode named entities.
Common Use Cases
- →Safely displaying user-submitted content in HTML
- →Encoding code snippets for display in documentation or blog posts
- →Decoding entities copied from websites or API responses
- →Preparing content for HTML attributes that contain quote characters