HTML Entities Converter
Encode text to HTML entities and decode entities back to text, in your browser.
Last updated:
Tool
Encode · 7 entities
36 characters · 7 entities
Encoded text
The characters & < > " and ' always become named entities (' for the apostrophe); non-ASCII characters become decimal numeric references only with the option on.
Common HTML entities
Select any entity to copy its code.
Your files never leave your device - processing happens in your browser.
Related tools: URL Encoder / Decoder · Base64 Encoder / Decoder · JSON Formatter
An HTML entity is a short code, such as & for an ampersand, that represents a character in HTML without the browser treating it as markup. FreeToolsKit's HTML Entities Converter turns text into entities — & < > " and ' become named entities, and accented or non-Latin characters become numeric references with the option on — and decodes named, decimal and hexadecimal entities back to readable text. Everything runs in your browser — pasted text is never uploaded.
How do you convert HTML entities?
- Choose Encode or Decode at the top of the tool.
- Type or paste your text into the box — a sample sentence is already filled in.
- When encoding, tick “Also encode non-ASCII characters” to turn accented and non-Latin characters into numeric references too.
- Read the converted result, which appears instantly.
- Press Copy to take the result, or Download .txt to save it; press Reset to return to the sample.
- Select any entry in the Common HTML entities table to copy that entity's code.
What is the HTML Entities Converter used for?
- Escaping an ampersand or angle bracket before pasting a code snippet into a blog post or CMS.
- Turning a sentence with quotes and accented characters into entities for an HTML email template.
- Decoding a block of entity-encoded text copied from a page's source back into readable characters.
- Checking what — or — in a piece of HTML actually stands for.
- Preparing text with special characters for a page where the character set cannot be changed.
Frequently asked questions
Is the HTML entities converter free?
Yes. The tool is completely free with no sign-up and no usage cap. Convert as much text as you like, as often as you like.
Is my text uploaded anywhere?
No. Encoding and decoding run entirely in your browser. Nothing you paste is sent to a server, stored or logged — closing the tab removes it completely.
What is the difference between named and numeric entities?
A named entity uses a word, such as & for an ampersand or © for ©, while a numeric entity uses the character's code point, such as & (decimal) or & (hexadecimal) for the same ampersand. Named entities are easier to read; numeric references work for every character, including ones with no name.
Why does decoding fail on an unknown entity?
Decoding fails when a reference is not a real HTML entity, for example &foo;, or when a numeric reference is malformed, such as &#xZZ; or a code point above 1114111. The tool names the entity and its position so you can fix it. A reference also needs its trailing semicolon — & without one is left as plain text.
Which characters are encoded?
Encoding always turns the five reserved HTML characters into named entities: & becomes &, < becomes <, > becomes >, " becomes " and ' becomes '. With the “Also encode non-ASCII characters” option on, every character above code point 127, such as é or —, becomes a decimal numeric reference like é.
Related tools
- URL Encoder / DecoderEncode or decode URLs and URL components, in full-URL or component mode.
- Base64 Encoder / DecoderEncode and decode Base64 for text and files, with data-URI preview.
- JSON FormatterValidate, pretty-print and minify JSON with precise error pinpointing.
- Case ConverterSwitch text between UPPER, lower, Title, Sentence case and more.
- HTML to Markdown ConverterTurn HTML into Markdown in your browser — live preview, copy or download the .md.
- Markdown to HTML ConverterTurn Markdown into HTML in your browser — live preview, copy or download the result.
Last updated:
- Free forever
- Files stay on your device
- No sign-up