Web & Developer Utilities100% Client-Side

HTML Entity Encoder

Use the HTML Entity Encoder when you want a page to display characters that HTML normally reads as markup. Paste a code sample, product label, or short text value to replace ampersands, angle brackets, and quotation marks with character references. The output is HTML source you can copy into the relevant location. For example, a tag shown in a tutorial can appear as literal text in a code block.

Input
48 chars•1 lines
Output

Reverse tool

HTML Decode

Decode common named HTML entities and decimal or hexadecimal character references. Restore readable text or inspect escaped markup locally in your browser.

Open HTML Decode
Example input
<h1>Hello & Welcome © 2026</h1>
Example output
<h1>Hello & Welcome © 2026</h1>

How to Use the HTML Encode Online

  1. 1Paste the original plain text or the snippet you want readers to see as text. Include the angle brackets or quotation marks exactly as they should appear.
  2. 2Check the output for references such as &lt; for an opening angle bracket and &amp; for an ampersand. Regular letters and digits stay as typed.
  3. 3Copy the escaped output to a plain-text area of your HTML source, such as a paragraph or a code block inside a tutorial.
  4. 4Preview the finished page and check that the browser displays the original characters, especially if your publishing system also escapes text.

Input & Output Examples

The escaped button markup displays as literal source in a rendered HTML tutorial.

Input Sample
<button type="submit">Save & exit</button>
Expected Output
&lt;button type=&quot;submit&quot;&gt;Save &amp; exit&lt;/button&gt;

The apostrophe, double quotes, and less-than sign are represented by character references while the words stay readable.

Input Sample
Sam's draft says "A < B".
Expected Output
Sam&#39;s draft says &quot;A &lt; B&quot;.

Practical Developer Workflows

  • Show a form control or tag in onboarding documentation so readers can copy its source from a rendered page.
  • Prepare a static HTML label containing an ampersand or angle bracket when editing the template source by hand.
  • Create expected values for a template test that checks how special characters are displayed in a paragraph.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

It replaces ampersands, opening and closing angle brackets, double quotes, and apostrophes. Other characters such as accented letters remain in the text, which is useful for pages that already use UTF-8. The output uses &#39; for apostrophes.

Explore Other Tools

12 suggested tools

View all tools