HTML Encoder / Decoder
Encode special characters to HTML entities and decode HTML entities back to plain text. Free, instant, browser-based HTML encoder.
Frequently asked
questions
HTML encoding converts special characters to HTML entities so they display correctly in a browser. For example, < becomes <, > becomes >, and & becomes &. This prevents browsers from interpreting the characters as HTML.
Encode any user-supplied content before inserting it into HTML to prevent XSS (Cross-Site Scripting) attacks. Also encode when you want to display HTML code on a page without it being rendered.
HTML encoding converts characters to HTML entities (e.g., <) for display in HTML. URL encoding converts characters to percent-encoded sequences (e.g., %3C) for use in URLs. Use the right one for the context.