Decode HTML entity

Decode HTML named and numeric character references into Unicode text.

freeworks offlinenothing uploaded
ToolHTML Entity Decoder
Input
Output

How it works

Named, decimal, and hexadecimal references become code points according to HTML tokenizer rules. Invalid or ambiguous references follow browser error recovery rather than strict XML behavior.

  • HTML’s reference set is broader than XML.
  • Browser-compatible recovery is useful for scraped web text.

Worked example

Decode escaped HTML markup
Convert named HTML entities in escaped markup back to readable characters
Input
											<h1>Hello & World</h1> © 2025
										
Output
												<h1>Hello & World</h1> © 2025
											

When to use this

Scrapers, CMS previews, and escaped-markup tests decode entities.

Edge cases

  • &amp; must not be decoded through an unintended second pass.
  • Some references decode without a semicolon in text contexts.
  • Invalid numeric points use HTML replacement rules.

References