Codificatore di entità HTML
Codificare entità HTML
Funziona nel browser · Nessun caricamento
Lo strumento e le istruzioni di questa pagina sono per ora in inglese. Funziona allo stesso modo: tutto avviene nel browser.
Il tuo browser è troppo vecchio per questo strumento. Aggiornalo o usa una versione recente di Chrome, Edge, Firefox o Safari.
- Nulla lascia il tuo dispositivo
- Nessun limite di dimensione imposto da un server
- Nessuna registrazione, nessuna filigrana
- Gratis
How to encode HTML entities
- Paste your text or code.
- Choose whether to escape quotes and how to write non-ASCII characters.
- Copy the encoded result.
Which characters?
- Always: & < > (and " ' for attribute values).
- Characters such as é, © or emoji only need encoding if the page isn't UTF-8. Choose named (é), decimal (é) or hexadecimal (é) entities.
Domande frequenti
Is this enough to prevent XSS?
Escaping is the right step for text placed inside HTML elements and quoted attributes. Inside JavaScript, URLs or CSS, other rules apply; use your framework's escaping for those.
Is my text uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.