Skip to content
Encode & Decode

HTML Encode

Encode HTML text, e.g. <b>"Hi"</b> → &lt;b&gt;&quot;Hi&quot;&lt;/b&gt;.

  • Free
  • No sign-up
  • Runs in your browser
Text → HTML

Escapes & < > " ' as HTML entities so text displays literally in a web page.

What does HTML Encode do?

HTML Encode encodes your text instantly, as you type or when you press the button.

HTML encoding turns <, >, & and quotes into entities like &lt; so text shows up literally on a web page instead of being read as markup.

What you can use

Any text, including emoji and non-English characters (they are treated as UTF-8).

Example

Input

<b>"Hi"</b>

Output

&lt;b&gt;&quot;Hi&quot;&lt;/b&gt;

How to use HTML Encode

  1. Step 1

    Paste the text you want to encode.

  2. Step 2

    Run HTML Encode. Errors such as invalid characters are shown under the box.

  3. Step 3

    Copy the result with one click.

Good to know

  • Encoding is reversible and is not a way to hide secrets — use real encryption for anything sensitive.
  • Run the matching decoder on the output to check it round-trips back to your original text.

Your privacy

Everything happens in this browser tab: what you paste is converted by JavaScript on your device and never sent to our server. Closing the tab clears it. Even so, don’t paste live passwords, API keys or customer records into any website.

Frequently asked questions

Is HTML Encode free?

Yes. HTML Encode is completely free, with no sign-up, no watermark and no daily limit.

Is the data I paste sent to a server?

No. Conversion runs in JavaScript inside this browser tab and nothing you paste is sent or stored. Even so, avoid pasting live passwords, API keys or private customer data into any website.

Why do I get an error?

Almost always the input isn’t quite valid: a missing comma or quote in JSON, an unclosed tag in XML, or a tab in YAML. The error message shows where parsing stopped — fix that spot, or press “Load example” to compare with input that works.

Does it work on my phone?

Yes. It works in any modern browser on Android, iPhone, tablets and computers — nothing to install.