HTML Entity Encoder

Converts special characters into HTML entity notation.

Lilu Baba's HTML Entity Encoder safely converts characters like <, > and & into their HTML entity equivalents, so they display literally instead of being interpreted as markup.

How to use this tool

  1. Type or paste text containing special characters.
  2. Its HTML entity-encoded form updates instantly.

HTML Entity Encoder — frequently asked questions

Characters like < and & have special meaning in HTML; encoding them prevents browsers from misinterpreting your text as markup.

No — HTML entity encoding is for safely displaying text within HTML markup; URL encoding is for safely including text within a URL.