HTML-Entitäten umwandeln
HTML-Zeichen maskieren oder fünf Grundentitäten und Zahlenreferenzen dekodieren.
Eingabe
Tipp: Strg + Enter zum Ausführen
Gespeicherte Einstellungen
Die ausführliche Hilfe unten gibt es vorerst nur auf Englisch.
Über dieses Tool
To show code or user-supplied text on a web page without the browser interpreting it as HTML, special characters must be escaped as entities. This tool escapes &, <, >, double and single quotes, or decodes the five basic named entities and numeric character references back to characters.
Escaping is essential when inserting text into HTML, but it is not a complete defence against cross-site scripting in every context, such as inside script tags or URLs.
So funktioniert es
- Paste the text or HTML.
- Choose encode to escape it, or decode to turn entities back into characters.
- Run the tool.
- Copy the result into your page, documentation or template.
So wird gerechnet
Encoding replaces & with &, < with <, > with >, " with " and ' with '. Decoding converts those five named entities plus decimal (é) and hexadecimal (é) references.
& < > quotes ⇄ entitiesRechenbeispiel
To show <a href="x">Tom & Jerry</a> as text in a tutorial, encoding produces <a href="x">Tom & Jerry</a>. Decoding "<b>café ©" returns "<b>café ©": © is a named entity outside the basic five, so it is left as written.
Beispiel für Eingabe und Ergebnis
<p> → <p>
Einschränkungen
- Decodes only &, <, >, ", ' and numeric references.
- Does not sanitize or validate HTML.
- Up to 100,000 characters.
Zuletzt aktualisiert:
Häufige Fragen
Why is © not decoded?
Only the five basic named entities are decoded. Use the numeric form © for ©.
Does escaping make user input safe?
It is safe for HTML text and quoted attribute values. Other contexts, such as JavaScript or URLs, need their own escaping.
Do I need to escape non-English letters?
Not on a UTF-8 page; they can be written directly.
Fehlerbehebung
Text shows &amp; on my page.
It was escaped twice. Escape only once, at the point where the text is inserted into HTML.
Named entities like remain.
They are outside the five supported names. Replace them with numeric forms or decode them in an editor.
My CMS still breaks the code sample.
Some editors decode entities on save. Use a code block feature instead.
Datenschutz & Kostenlos
Werden meine Eingaben gespeichert?
Deine Eingaben bleiben in diesem Tab. Wir erhalten weder Dateien noch Texte oder Rechenwerte.
Ist dieses Tool kostenlos?
Ja. Keine Anmeldung oder Zahlung nötig.
Siehe auch
Weitere nützliche Tools
JSON formatieren und prüfen
JSON lokal prüfen, formatieren oder minimieren. Kein Versand ungültiger Daten.
Entwicklung und SEOCSV in JSON umwandeln
CSV mit Kopfzeile, zitierten Trennzeichen und Umbrüchen in JSON umwandeln.
Entwicklung und SEOJSON in CSV umwandeln
Flaches Objektarray in CSV. Formelähnliche Zeichenfolgen erhalten einen Schutzpräfix.
Entwicklung und SEO