KickSolve • Free • Private

HTML Encode Online

Escape special characters so text is safe to show in HTML. Turn & < > and quotes into entities, and optionally convert accented letters, symbols and emoji to named, decimal or hex entities.

Named, decimal and hexEmoji supportedNothing uploaded

How to use HTML Encoder on KickSolve

Three quick steps, no account needed.

Paste your textAdd the text or code you want to escape.
Choose what to encodeSpecial characters only, or also letters, symbols and emoji as named, decimal or hex entities.
Copy the resultCopy it or download it as a .txt file.

Why choose KickSolve

Built for speed, privacy and clean results.

Private by designYour text is processed in your browser and never uploaded.
InstantThe result updates as you type, with live counts.
Full entity supportNamed, decimal and hex entities, including emoji above U+FFFF.
Copy or downloadCopy the result or save it as a .txt file.

What you can do with HTML Encoder

Everything this tool offers.

Escape HTML special charactersConvert & < > and quotes so they display as text.
Show code on a web pageDisplay HTML or XML snippets without the browser running them.
Safe text in attributesEscape quotes inside attribute values.
Accented letters to entitiesTurn e with an acute accent into &eacute; for ASCII-only files.
Symbols and emoji to numeric entitiesUse decimal or hex codes in legacy systems.
Email templatesKeep special characters intact across mail clients.
Content for CMS fieldsPrevent stray characters from breaking markup.
Reduce XSS risk when showing textEscape on output as one layer of protection.

About HTML Encoder on KickSolve

What it does and how to get the best results.

What is HTML encoding?

HTML encoding replaces characters that have special meaning in markup, or that are hard to type, with entities that start with an ampersand and end with a semicolon. A browser displays the entity as the original character instead of treating it as code.

Which characters must be escaped?

At minimum, the ampersand, less-than and greater-than signs, and quotes inside attribute values. Everything else is optional when your page uses UTF-8, but entities are useful for ASCII-only systems or for characters you cannot type.

Named, decimal or hex?

Named entities such as &copy; are readable but exist only for a limited set of characters. Decimal (&#169;) and hex (&#xA9;) numeric entities work for any Unicode character, including emoji.

A note on security

Encoding output is a core defence against cross-site scripting, but it must match the context: HTML text, attribute, JavaScript or URL. Prefer your framework's built-in escaping and treat this tool as a helper for content you paste by hand.

Read the KickSolve privacy policy for details about the site itself.

Characters that must be escaped in HTML

These five have special meaning in markup.

CharacterEntityWhy
&&amp;Starts an entity
<&lt;Starts a tag
>&gt;Ends a tag
"&quot;Ends a double-quoted attribute
'&#39;Ends a single-quoted attribute

Encoding example in each mode

Input: <a href="/cafe">Café & "Co"</a> © 2026 — 5 < 6

ModeResult
Special only&lt;a href=&quot;/cafe&quot;&gt;Café &amp; &quot;Co&quot;&lt;/a&gt; © 2026 — 5 &lt; 6
Named&lt;a href=&quot;/cafe&quot;&gt;Caf&eacute; &amp; &quot;Co&quot;&lt;/a&gt; &copy; 2026 &mdash; 5 &lt; 6
Decimal&lt;a href=&quot;/cafe&quot;&gt;Caf&#233; &amp; &quot;Co&quot;&lt;/a&gt; &#169; 2026 &#8212; 5 &lt; 6
Hex&lt;a href=&quot;/cafe&quot;&gt;Caf&#xE9; &amp; &quot;Co&quot;&lt;/a&gt; &#xA9; 2026 &#x2014; 5 &lt; 6

Frequently asked questions

Quick answers.

What does HTML encode mean?

It replaces special characters such as < and & with entities such as &lt; and &amp; so the browser shows them as text.

Which characters need to be HTML encoded?

The ampersand, less-than and greater-than signs, and quote characters inside attributes.

What is the difference between named and numeric entities?

Named entities use a word such as &eacute;. Numeric entities use the Unicode number in decimal (&#233;) or hex (&#xE9;). Numeric works for every character.

How do I encode an apostrophe?

Use &#39; for the widest compatibility, or &apos; if you turn that option on. &apos; is valid in HTML5 and XML.

Do I need to encode accented letters or emoji?

Not if your page is UTF-8, which is the default today. Do it for ASCII-only systems or when you cannot control the file encoding.

Does encoding prevent XSS?

It is an important part of defence when done correctly for the right context, but it is not sufficient alone. Use framework escaping and a content security policy.

Does the encoder change line breaks or spaces?

No. Spaces and line breaks are kept as they are.

Is the HTML encoder free and private?

Yes. It is free with no signup and runs in your browser.

How do I decode HTML entities back to text?

Use the HTML decoder, which turns named, decimal and hex entities back into characters.

More free tools from KickSolve

Related everyday tools.