Skip to content
HTML Converters

Text to HTML Entities

Escape <, >, & and accented letters as HTML entities.

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

Encodes < > & " ' and every non-ASCII character (named entity where HTML5 has one).

Output

Converted output will appear here.

What does Text to HTML Entities do?

Text to HTML Entities takes text and gives you clean output you can copy or download as a .txt file.

It is handy when moving content between a CMS, a forum, documentation and code.

What you can use

Type text.

Example

Input

5 < 6 & café

Output

5 &lt; 6 &amp; caf&eacute;

How to use Text to HTML Entities

  1. Step 1

    Paste or type your text in the input box (the placeholder shows an example).

  2. Step 2

    The result appears as you convert — check it in the output box.

  3. Step 3

    Copy it, or download it to keep a file.

Good to know

  • Encodes < > & " ' and every non-ASCII character (named entity where HTML5 has one).
  • You don’t need <html>, <head> or <body> — a fragment is fine.

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 Text to HTML Entities free?

Yes. Text to HTML Entities 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.