HTML Entity (Special Character) Encoder & Decoder

    Encode special characters to HTML entities (&, < ...) or decode them back.

    Runs in your browser, no data sent Free · No sign-up required
    <a href="/blog">Clou.TR & "cloud"</a>

    Handle HTML special characters safely

    HTML entity encoding comes into play when you want to show a code sample on an HTML page, safely echo user input, or use special characters in email templates. This tool converts text into HTML entities or turns encoded text back into readable form.

    Remember to protect against XSS attacks by always escaping user input.

    Frequently Asked Questions

    HTML entities are codes that represent characters that have special meaning in HTML or cannot be typed directly. For example, the '<' character is written as &lt; and the '&' character as &amp;. This way the browser displays them as plain text rather than as a tag or code.

    You should escape special characters whenever you display user-supplied text or a code sample on an HTML page. This both makes the content render correctly and prevents XSS (cross-site scripting) attacks.

    A named entity uses readable names (&copy;), while a numeric entity uses the character's Unicode code point (&#169;). Both produce the same result; this tool resolves both when decoding.

    Fast, secure, Turkey-based hosting

    Move your website to Clou.TR with NVMe SSD, free SSL and a 99.9% uptime guarantee.