Morphy
Home / HTML Escape

HTML Escape / Unescape

Convert characters with special meaning in HTML (< > & quotes) into entity references, or turn them back. This prevents broken display and unintended tags.

Paste your text to get started.

What is HTML escaping?

In HTML, characters such as < > & ' have special meaning. Writing them directly in body text can break the display or be interpreted as unintended tags. HTML escaping replaces them with ”entity references“ (such as &lt;). It's used, for example, to safely display user input.

How to use

All conversion happens in your browser, and your input is never sent anywhere.

FAQ

Which characters are escaped?

The five characters & < > ' are converted into entity references.

Can it restore numeric character references too?

Yes. Unescape turns numeric references such as &#39; or &#x3C;, and the main named references, back into the original characters.

Could the HTML I enter be executed?

No. It restores only the characters in a safe way, and nothing is ever executed as a tag.

Is my data sent anywhere?

No. Everything is processed in your browser.

Related tools