HTML Encoder Decoder

Encode and decode HTML entities

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

Displaying code samples on a webpage, or safely injecting user content, requires converting special characters into HTML entities. Doing it by hand is tedious and easy to get wrong.

Encode any text to entities or decode entities back to characters with live conversion and one-click copy. A staple utility for front-end developers.

How to use the html encoder decoder

  1. 1Paste your text or code.
  2. 2Switch between Encode and Decode tabs.
  3. 3Copy the converted result.

Frequently asked questions

It converts characters like <, > and & into entities (&lt; &gt; &amp;) so they display as text instead of being parsed as HTML.

More free tools you might find useful.

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