HTML entity converter
Encode or decode HTML entities for any given input.
About this tool
The HTML entity converter encodes text so it shows up in a web page as written instead of being read as HTML, and decodes HTML entities back into normal characters.
How to use the HTML entity converter
- Choose Encode or Decode.
- Paste your text or HTML.
- Copy the result.
What encoding does
- The five characters with a meaning in HTML become named entities: & is &, < is <, > is >, " is " and ' is '.
- Every other character outside plain ASCII becomes a numeric entity, so é is é and “ is “.
So <a href="x">Café</a> becomes <a href="x">Café</a>, which a browser displays as the code itself.
When you need it
- Showing code on a web page or in a blog post.
- Putting user text into HTML safely, so it can’t add tags or scripts.
- Old systems and emails that can’t handle characters outside ASCII.
Decoding understands named entities ( , ©, é) as well as decimal and hex ones (©, ©). It all happens in your browser.
Similar tools
BBCode to HTML
Convert forum style BBCode snippets to raw HTML code.
Markdown to HTML
Convert Markdown snippets to raw HTML code.
HTML tags remover
Easily remove all HTML tags from a block of text.
User agent parser
Parse the browser, engine, operating system and device from user agent strings.
URL parser
Parse the parts and query parameters of any URL.
HTML minifier
Minify your HTML by removing all the unnecessary characters.