onlineunicodetools logo

Unicode to html converter

World's simplest unicode tool

This online utility encodes Unicode data to HTML entities. Anything that you paste or enter in the input area automatically gets converted to HTML and is printed in the output area. It supports all Unicode symbols and it works with emoji characters. You can output HTML entities in binary or hexadecimal formats, and use entity names where possible. You can also choose to convert all Unicode characters to entities or only the special HTML symbols. Created by encoding gurus from team Browserling.
announcement heads up!
We just launched a new site – Online String Tools – a collection of string processing utilities. Check it out!
fullscreen fullscreen_exit
Encoding Type
Convert all Unicode symbols to HTML entities.
Convert only special HTML symbols to entities.
The special HTML symbols are <, >, &, ' and ".
Encoding Format
Output HTML entities in the decimal base.
Output HTML entities in the hexadecimal base.
Names and Newlines
If the character has an entity name, use it in the output.
Don't convert newline symbols to HTML entities.
Unicode to html converter tool What is a unicode to html converter?
This browser-based utility converts your Unicode text to HTML entities. HTML entities are special characters that are used to display reserved HTML symbols that are otherwise interpreted as HTML code. It's also used to show invisible characters, such as non-breaking spaces and to express symbols that cannot easily be entered with a keyboard. An HTML entity begins with an ampersand "&" and ends with a semicolon ";". In the middle, it uses either the entity name (in which case it's known as a character entity reference) or a decimal or hex number (in which case it's known as a numeric character reference). For example, the string "&copy;" means the copyright symbol "©" and the string "&plusmn;" means the plus or minus symbol "±". However, not all Unicode characters have a corresponding entity name. For such characters, a unique number (character's code point) is used in the hexadecimal or decimal format. For example, the capital English letter "A" has the code point 65 and can be written as "&#65;" in the decimal base, or "&#x41;" in the hexadecimal base. In this tool's options, you can select the desired output base and decide whether to use numerical codes or special names for characters. You can also choose if you want to convert all input symbols or only special HTML characters (which are an ampersand &, a double quote, ", a less than symbol <, a greater than symbol >, and a single quote '). Sometimes you also may want to preserve the integrity of all lines and you can do so using the option that ignores the newline characters.
Unicode to html converter examples Click to use
Chinese Food Emojis
In this example, we encode Chinese food emoji to HTML entities in the base-16 (hexadecimal). We also encode the newlines and use entity names where possible. Only two characters have entity references – the dash symbol, which is denoted as "&ndash;" and the newline symbol, which is denoted as "&NewLine;".
🥠 – Fortune Cookie 🍚 – Cooked Rice 🥟 – Dumpling 🥡 – Takeout Box 🥮 – Moon Cake
&#x1f960;&#x20;&ndash;&#x20;&#x46;&#x6f;&#x72;&#x74;&#x75;&#x6e;&#x65;&#x20;&#x43;&#x6f;&#x6f;&#x6b;&#x69;&#x65;&NewLine;&#x1f35a;&#x20;&ndash;&#x20;&#x43;&#x6f;&#x6f;&#x6b;&#x65;&#x64;&#x20;&#x52;&#x69;&#x63;&#x65;&NewLine;&#x1f95f;&#x20;&ndash;&#x20;&#x44;&#x75;&#x6d;&#x70;&#x6c;&#x69;&#x6e;&#x67;&NewLine;&#x1f961;&#x20;&ndash;&#x20;&#x54;&#x61;&#x6b;&#x65;&#x6f;&#x75;&#x74;&#x20;&#x42;&#x6f;&#x78;&NewLine;&#x1f96e;&#x20;&ndash;&#x20;&#x4d;&#x6f;&#x6f;&#x6e;&#x20;&#x43;&#x61;&#x6b;&#x65;
Required options
These options will be used automatically if you select this example.
Convert all Unicode symbols to HTML entities.
Output HTML entities in the hexadecimal base.
If the character has an entity name, use it in the output.
Don't convert newline symbols to HTML entities.
Eckhart Tolle's Quote
This example converts an Eckhart Tolle's quote in bold-fraktur font to HTML entities in the decimal format. It processes all Unicode characters and displays each of them as a numeric code reference in base-10.
“𝕷𝖎𝖋𝖊 𝖎𝖘𝖓'𝖙 𝖆𝖘 𝖘𝖊𝖗𝖎𝖔𝖚𝖘 𝖆𝖘 𝖙𝖍𝖊 𝖒𝖎𝖓𝖉 𝖒𝖆𝖐𝖊𝖘 𝖎𝖙 𝖔𝖚𝖙 𝖙𝖔 𝖇𝖊.” 𝕰𝖈𝖐𝖍𝖆𝖗𝖙 𝕿𝖔𝖑𝖑𝖊
&#8220;&#120183;&#120206;&#120203;&#120202;&#32;&#120206;&#120216;&#120211;&#39;&#120217;&#32;&#120198;&#120216;&#32;&#120216;&#120202;&#120215;&#120206;&#120212;&#120218;&#120216;&#32;&#120198;&#120216;&#32;&#120217;&#120205;&#120202;&#32;&#120210;&#120206;&#120211;&#120201;&#32;&#120210;&#120198;&#120208;&#120202;&#120216;&#32;&#120206;&#120217;&#32;&#120212;&#120218;&#120217;&#32;&#120217;&#120212;&#32;&#120199;&#120202;&#46;&#8221;&#32;&#120176;&#120200;&#120208;&#120205;&#120198;&#120215;&#120217;&#32;&#120191;&#120212;&#120209;&#120209;&#120202;
Required options
These options will be used automatically if you select this example.
Convert all Unicode symbols to HTML entities.
Output HTML entities in the decimal base.
If the character has an entity name, use it in the output.
HTML List
In this example, we HTML-encode an HTML list to hexadecimal entities. We convert only the special HTML characters and use HTML names for them. Thus, we get "&lt;" instead of "<" and "&gt;" instead of ">". We also activate the "Ignore Newlines" option that prevents the encoding of new lines so that the line structure of the input data is preserved.
<ul> <li>🐱 Cat</li> <li>🐶 Dog</li> <li>🐰 Rabbit</li> </ul>
&lt;ul&gt; &lt;li&gt; Cat&lt;/li&gt; &lt;li&gt; Dog&lt;/li&gt; &lt;li&gt; Rabbit&lt;/li&gt; &lt;/ul&gt;
Required options
These options will be used automatically if you select this example.
Convert only special HTML symbols to entities.
Output HTML entities in the hexadecimal base.
If the character has an entity name, use it in the output.
Don't convert newline symbols to HTML entities.
Pro tips Master online unicode 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://onlineunicodetools.com/convert-unicode-to-html?input=%F0%9F%A5%A0%20%E2%80%93%20Fortune%20Cookie%0A%F0%9F%8D%9A%20%E2%80%93%20Cooked%20Rice%0A%F0%9F%A5%9F%20%E2%80%93%20Dumpling%0A%F0%9F%A5%A1%20%E2%80%93%20Takeout%20Box%0A%F0%9F%A5%AE%20%E2%80%93%20Moon%20Cake&all-symbols=true&hex=true&named=true&ignore-newlines=false
All unicode tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly find code positions of all Unicode values.
Quickly decode code positions to Unicode values.
Quickly encode Unicode values to UTF-8 encoding.
Quickly encode Unicode values to UTF-16 encoding.
Quickly encode Unicode values to UTF-32 encoding.
Quickly create a picture from Unicode symbols.
Quickly generate random Unicode text in a given range.
Quickly generate all Unicode values from the given code point interval.
Quickly filter Unicode symbols that are within the given code point interval.
Quickly split Unicode data into graphemes.
Quickly sort Unicode glyphs in increasing or decreasing order.
Quickly find the length of Unicode text.
Quickly increase Unicode code point values.
Quickly decrease Unicode code point values.
Quickly reverse the order of symbols in Unicode text.
Quickly rotate Unicode characters to the left and right.
Quickly create multiple copies of Unicode text.
Quickly extract all characters from Unicode text.
Quickly split Unicode data into pieces.
Quickly split Unicode text into chunks of constant length.
Quickly merge Unicode snippets together.
Quickly shorten Unicode text to the given length.
Quickly left-pad Unicode text with any character.
Quickly right-pad Unicode text with any character.
Quickly align Unicode data to the center.
Quickly align Unicode data to the right.
Quickly convert ordinary numbers to Unicode numbers in various fonts.
Quickly convert ordinary letters to Unicode letters in various fonts.
Quickly convert ordinary text to fancy Unicode text.
Quickly combine input Unicode with diacritical marks.
Quickly circularly rearrange Unicode symbols.
Quickly encode Unicode data to HTML entities.
Quickly URL-escape Unicode symbols.
Quickly encode Unicode values to base64.
Quickly encode Unicode values to a data URI.
Quickly convert Unicode characters to raw bytes.
Quickly convert Unicode data to base-2 (binary).
Quickly convert Unicode data to base-8 (octal).
Quickly convert Unicode data to base-10 (decimal).
Quickly convert Unicode data to base-16 (hexadecimal).
Quickly convert Unicode symbols to raw ASCII bytes.
Quickly convert ASCII bytes to Unicode symbols.
Quickly create a picture from Unicode emojis.
Release Zalgo on your Unicode text.
Coming soon These unicode tools are on the way
Name Unicode Symbols
Spell out the names of Unicode characters in the input text.
URL-decode Unicode
URL-unescape Unicode text.
Convert Binary to Unicode
Convert base-2 data to Unicode encoding.
Convert Octal to Unicode
Convert base-8 data to Unicode encoding.
Convert Decimal to Unicode
Convert base-10 data to Unicode encoding.
Convert Hex to Unicode
Convert base-16 data to Unicode encoding.
Convert Unicode to Any Base
Convert Unicode text to any radix.
Convert Any Base to Unicode
Convert any radix data to Unicode.
Convert Unicode to Latin1
Convert Unicode text to Latin1 encoding.
Convert Latin1 to Unicode
Convert Latin1 encoded data to Unicode.
Convert Bytes to Unicode
Convert raw bytes to Unicode.
Remove Combining Characters
Delete diacritical marks from Unicode data
Remove Zalgo from Unicode
Make Unicode Zalgo text readable again.
Validate Unicode
Check if the given Unicode has valid encoding.
Convert Unicode to Punycode
Encode Unicode text to Punycode encoding.
Convert Punycode to Unicode
Decode Punycode encoding to Unicode.
Decode Base64 to Unicode
Convert base64 data to Unicode text.
Encode Unicode to Data URI
Convert Unicode to a valid data URL.
Decode Data URI to Unicode
Convert a valid data URL to Unicode text.
Convert HTML to Unicode
Decode HTML entities to Unicode data.
Convert UTF8 to Unicode
Decode UTF8 encoding to Unicode.
Convert UTF16 to Unicode
Decode UTF16 encoding to Unicode.
Convert UTF32 to Unicode
Decode UTF32 encoding to Unicode.
Convert Unicode to Uppercase
Convert all Unicode characters to uppercase.
Convert Unicode to Lowercase
Convert all Unicode characters to lowercase.
Convert Unicode to Randomcase
Randomize case of all Unicode characters.
Convert Unicode to Lowercase
Convert all Unicode characters to lowercase.
JSON Stringify Unicode
Encode Unicode to JSON.
JSON Parse Unicode
Decode JSON to Unicode.
Shuffle Unicode Symbols
Randomly rearrange the order of input graphemes.
Analyze Unicode
Print statistics about Unicode data and code points, etc.