Skip to content
Ovatly

HTML Entity Encoder/Decoder

100% PrivateDeveloper Tools

Encode special characters into safe HTML entities, or decode entities back into text.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

  1. 1Paste the text you want to convert.
  2. 2Press Encode entities to make it safe to display in HTML.
  3. 3Or press Decode entities to turn <, &, numeric entities and common named entities back into characters.
  4. 4Copy the result from the output box.

About this tool

The HTML Entity Encoder/Decoder converts special characters like <, > and & into their safe entity forms so they can be shown as text inside a page, and decodes entities back into characters. It is essential when you are writing code samples, documentation or user content that a browser would otherwise swallow as markup.

Related tools

Advertisement

Part of Ovatly's free tools in Developer Tools.