onlinetexttools logo

Text html encoder

World's simplest text tool

World's simplest browser-based utility for HTML-encoding text. Load your text in the input form on the left and you'll automatically get HTML-escaped text on the right. Powerful, free, and fast. Load plain text – get HTML entities. Created by devs for devs.
we made something new! fun with fractals
We love having fun so we created fractal art generators – dragon fractals, polyflake fractals, z-fractals and many more. Check them out!
fullscreen fullscreen_exit
Character Options
If selected, split the input text into individual chars and turn each char into a HTML entity.
Text html encoder tool What is a text html encoder?
With this tool you can HTML-encode text. HTML-encoding is also known as HTML-escaping. This encoding transforms all special HTML characters into something called HTML entities. This allows you, for example, to put HTML inside of HTML. Additionally, you can encode all letters in text to HTML entities (not just special HTML symbols), if you select the option above. Textabulous!
Text html encoder examples Click to use
Encode HTML Code
This example converts HTML code to HTML entities. In this case, you can see that English text remains unchanged, but some characters get converted into special escape sequences. For example, the < character that is used to open HTML tags is converted to its corresponding &lt; HTML entity.
<body> <ul> <li>first item</li> <li>second item</li> <li>third item</li> </ul> </body>
&lt;body&gt; &lt;ul&gt; &lt;li&gt;first item&lt;/li&gt; &lt;li&gt;second item&lt;/li&gt; &lt;li&gt;third item&lt;/li&gt; &lt;/ul&gt; &lt;/body&gt;
HTML-Escape All Letters
This example HTML-encodes all letters in text to numeric HTML entities.
The best way to learn to do something is to do it.
&#x54;&#x68;&#x65;&#x20;&#x62;&#x65;&#x73;&#x74;&#x20;&#x77;&#x61;&#x79;&#x20;&#x74;&#x6f;&#x20;&#x6c;&#x65;&#x61;&#x72;&#x6e;&#x20;&#x74;&#x6f;&#x20;&#x64;&#x6f;&#x20;&#x73;&#x6f;&#x6d;&#x65;&#x74;&#x68;&#x69;&#x6e;&#x67;&#x20;&#x69;&#x73;&#x20;&#x74;&#x6f;&#x20;&#x64;&#x6f;&#x20;&#x69;&#x74;&#x2e;
Required options
These options will be used automatically if you select this example.
If selected, split the input text into individual chars and turn each char into a HTML entity.
Pro tips Master online text tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinetexttools.com/html-encode-text?input=%3Cbody%3E%0A%20%20%3Cul%3E%0A%20%20%20%20%3Cli%3Efirst%20item%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Esecond%20item%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Ethird%20item%3C%2Fli%3E%0A%20%20%3C%2Ful%3E%0A%3C%2Fbody%3E
All text tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly split text into chunks.
Quickly merge lines of text together.
Quickly repeat text many times.
Quickly write text backwards.
Quickly cut text to the given length.
Quickly trim left or right side of text.
Quickly pad the left side of text.
Quickly pad the right side of text.
Quickly align text to the right side.
Quickly center text.
Quickly prepend a prefix to text.
Quickly append a suffix to text.
Quickly URL-escape text.
Quickly URL-unescape text.
Quickly convert plain text to HTML entities.
Quickly convert HTML entities to plain text.
Coming soon These text tools are on the way
Tokenize Text
Create a list of all words in text.
Generate Text Unigrams
Create a list of all monograms.
Generate Text Bigrams
Create a list of all 2-grams.
Generate Text Trigrams
Create a list of all 3-grams.
Generate Text N-grams
Create a list of all n-grams.