Skip to content
clkr

Loading tools…

    HTML Entity Encoder / Decoder

    Encode text to HTML entities or decode entities like & and © back to characters with this free online HTML entity encoder and decoder.

    Loading…
    Processed locally in your browserHow?

    This tool runs in this browser tab. The files, text and values you enter are not uploaded to clkr.work servers — closing the tab clears them. Anonymous usage events (such as which button was pressed) are counted, never your content. Privacy policy

    What next?

    Found it useful? Share HTML Entity Encoder / Decoder

    Free, no sign-up, works in the browser — send it to a friend or add it to your site.

    Part of the toolkit

    How to use HTML Entity Encoder / Decoder

    1. 1Choose Encode or Decode
    2. 2Paste your text, HTML or entity-encoded string — for encoding pick how much to escape
    3. 3Copy the result, or press Swap to reverse it

    Frequently asked questions

    What are HTML entities?▾

    Codes that represent characters in HTML: &lt; for <, &amp; for &, &copy; for ©, or numeric forms like &#169; and &#xA9;. Browsers display them as the character.

    Which characters must be escaped in HTML?▾

    & < and > in text, plus " and ' inside attribute values. Escaping these five prevents broken markup and cross-site scripting (XSS) when showing user text.

    Do I need to encode accented letters and symbols?▾

    Not on a UTF-8 page — é, € or emoji can be written directly. Encode them (the named or all non-ASCII options) for systems that only accept ASCII, such as some email templates.

    What is &nbsp;?▾

    A non-breaking space: it looks like a normal space but keeps the words on either side on the same line and isn't collapsed by the browser.

    Embed HTML Entity Encoder / Decoder on your website▾

    Paste this snippet into your page. The embedded tool runs in your visitor's browser and shows a small “Powered by clkr.work” link.