Koodaa teksti HTML-entiteeteiksi tai pura entiteetit takaisin tekstiksi, UTF-8-turvallisesti ja selainpuolella.
Nain kaytat tyokalua HTML-koodain
Liita tekstisi tai HTML:si.
Valitse Koodaa (suojaa HTML-erikoismerkit), Koodaa kaikki (suojaa myos ei-ASCII) tai Pura.
Kopioi tulos.
An HTML entity encoder and decoder for escaping special characters so they display as text instead of being interpreted as markup. It converts characters like < and & into entities such as < and &, and decodes them back again.
Encoding and decoding are UTF-8 safe and run entirely in your browser, so nothing you paste is uploaded.
Encoding always escapes the five characters that have special meaning in HTML: & < > " and '. That is what stops a stray < from being read as the start of a tag, or text from accidentally breaking out of an attribute.
An Encode all option additionally turns every non-ASCII character into a numeric entity, which is useful for legacy systems, some email pipelines, or anywhere you need to be sure the output is pure ASCII.
Decoding understands all three entity forms: named entities like & and ©, decimal entities like é, and hexadecimal entities like €. Sequences it does not recognize are left untouched rather than mangled.
Escaping the HTML specials is the core defense against HTML injection and cross-site scripting (XSS): any untrusted text should be encoded before it is placed into a page, so it renders as harmless characters instead of active markup.
Usein kysytyt kysymykset
Koodaa suojaa vain viisi merkkia, jotka tulee suojata HTML:ssa (& < > " '). Koodaa kaikki muuttaa lisaksi jokaisen ei-ASCII-merkin numeeriseksi entiteetiksi, mika on hyodyllista vanhoille jarjestelmille tai sahkopostille.
Nimetyt entiteetit kuten & ja ©, desimaalientiteetit kuten é, ja heksadesimaalientiteetit kuten €. Tuntemattomat jaksot jatetaan ennalleen.
HTML-erikoismerkkien koodaaminen on ydinpuolustus merkinnan injektointia vastaan. Koodaa aina epaluotettava teksti ennen sen sijoittamista HTML:aan.
Upota tämä työkalu
Lisää tämä työkalu omalle verkkosivustollesi. Kopioi alla oleva koodinpätkä, niin se pysyy ajan tasalla automaattisesti.
<iframe src="https://monu.tools/embed/fi/html-encoder" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Liittyvat tyokalut
Koodaa teksti Base64-muotoon tai pura Base64 takaisin tekstiksi. UTF-8-turvallinen automaattisella suunnan tunnistuksella.
Prosenttikoodaa ja pura URL-osoitteita ja URL-komponentteja, UTF-8-turvallisesti.
Pura JSON Web Token tarkastellaksesi sen otsaketta ja hyotykuormaa, luettavilla vanhenemis- ja myontamisajoilla. Toimii kokonaan selaimessasi; tokeneita ei koskaan ladata.
Luo SHA-1-, SHA-256-, SHA-384- ja SHA-512-tiivisteita mista tahansa tekstista suoraan selaimessasi.