Skip to main content

HTML encode text online and escape entities

Raw text
Escaped

The result appears here as you type.

Converts the five characters that carry meaning in HTML into their entity form. This is what you need when showing a code sample on a page, or when putting untrusted text somewhere a browser will parse it. Also called HTML escaping or entity encoding. It escapes only; it does not wrap your text in paragraph tags.

How to use the HTML Encoder, step by step

Real screenshots of the tool, captured while running it.

  1. 1

    Open the tool

    HTML Encoder opens empty, with raw text on the left and escaped on the right.

    Empty HTML Encoder before any input
  2. 2

    Add your input

    Paste your own raw text, or load the sample. The escaped pane fills in as you type.

    HTML Encoder with input in place
  3. 3

    Read the result

    The escaped appears on the right with copy and save beside it.

    HTML Encoder showing its result

Questions people ask

Related tools