Skip to main content
JoliTools

HTML Encoder Decoder

Encode special HTML characters or decode HTML entities into readable text.

0 bytes
Encoded HTML0 bytes

Encodes & < > " and ' to their HTML entities. Decoding also understands numeric entities like &#60; and &#x3C;. Everything runs in your browser, nothing is sent or stored anywhere.

About this tool

HTML Encoder Decoder converts special characters into HTML entities and changes recognized HTML entities back into their readable characters. HTML uses certain characters for its markup syntax. Encoding these characters can help display text safely as content instead of having the browser interpret them as part of an HTML element.

Suppose you want to display the text 5 less than 10 on a webpage. The less than character has a special meaning in HTML, so encoding it as an HTML entity helps prevent it from being interpreted as markup. Decoding performs the reverse operation, turning entities such as ampersand references back into their corresponding characters.

How to use the html encoder decoder

  1. 1Paste your text or HTML entities into the input area.
  2. 2Choose Encode or Decode.
  3. 3Run the conversion.
  4. 4Copy the converted result.

Good to know

HTML encoding is useful when preparing text for HTML pages, documentation, code examples, and content that includes special symbols. Common characters include the ampersand, quotation marks, greater than sign, and less than sign. Remember that HTML encoding is not the same as sanitizing untrusted HTML. It does not remove dangerous scripts or make arbitrary HTML safe to insert into a webpage. If you are handling user submitted HTML, use an appropriate sanitization method and follow your application's security practices. Also, encoding an entire document can change markup into visible text, which may not be what you want. Check the result before using it. Conversion happens locally in your browser. Your text is never uploaded to JoliTools.

Frequently asked questions

HTML encoding replaces certain special characters with HTML entities so they can be displayed as text without being interpreted as markup.

More free tools you might find useful.

Part of Developer Tools on JoliTools, free tools, no sign-up.