← Back to Tools

HTML Entities Converter

Convert special characters to HTML entities and vice versa for your web projects

Encoding Options

Result

Characters: 0 | Entities: 0
Converted result will appear here

Common HTML Entities

Character Entity Name Numeric Entity Hex Entity Description
< &lt; &#60; &#x3C; Less than
> &gt; &#62; &#x3E; Greater than
& &amp; &#38; &#x26; Ampersand
" &quot; &#34; &#x22; Double quote
' &apos; &#39; &#x27; Apostrophe
© &copy; &#169; &#xA9; Copyright
® &reg; &#174; &#xAE; Registered trademark
&trade; &#8482; &#x2122; Trademark
&euro; &#8364; &#x20AC; Euro
£ &pound; &#163; &#xA3; Pound

How It Works

Encoding

Converts special characters to HTML entities, ensuring your content displays correctly in browsers. For example, "<" becomes "&lt;" which displays as "<" in HTML.

Decoding

Transforms HTML entities back into their original characters. Useful for editing encoded content or converting code snippets for display.

Prevent XSS

Encoding user input helps prevent cross-site scripting (XSS) attacks by ensuring that code isn't executed when displayed on your website.

HTML Validation

Using HTML entities ensures your markup passes validation checks by properly handling special characters in your content.