HTML Entity Encoder / Decoder
Encode special HTML characters into entities or decode entities back to plain text.
Encode special HTML characters into entities or decode entities back to plain text.
Encode HTML special characters (&, <, >, ", ') to entities and decode them back. Prevents XSS and renders correctly in browsers. This page is part of UtilsNest's Developer Tools, so you can move between related workflows without leaving the browser.
Browse Category
Explore more tools in Developer Tools to handle adjacent tasks faster.
Open Developer ToolsRaw < and > characters break HTML structure. & breaks entity references. Encoding prevents layout corruption and XSS injection attacks.
& is the HTML entity for the ampersand character &. Browsers render it as & without starting a malformed entity.