File to HTML entities converter

Convert the text of a file, or text you type, into HTML entities. Characters such as <, > and & then show up as text in a web page instead of being read as code.

Drop your file here

Choose file

Tekstbestand, zoals .txt of .html · of plak met Ctrl+V

How it works

  1. Choose a file or type text

    Drop a file in the box, choose it on your device or type text.

  2. Encoded instantly

    The HTML-entiteiten result appears at once; change the options if you like.

  3. Copy or download

    Copy the text with one click or save it as a .txt file.

What is converted

  • &, <, >, " and ' are always converted (&amp;, &lt;, &gt;, &quot;, &#39;).
  • With Also accents and other non-ASCII characters, letters such as é, symbols such as € and emoji are converted too. Names like &eacute; are used where they exist; everything else becomes a number such as &#128512;.

Text files only

HTML entities are for text. If you pick an image or another binary file, the tool warns you; use Base64 for those instead.

Private by design

The conversion happens in your browser. Nothing is uploaded.

Frequently asked questions

Is the file to HTML entities free?

Yes. The file to HTML entities is completely free, with no account, sign-up or usage limit.

Which files can I encode?

Any kind of file: images, PDFs, documents, audio or text. You can also type or paste text directly.

Is my file uploaded?

No. The encoding happens in your browser; your file doesn't leave your device.