"); sampleWindow.document.writeln("Unicode character U+" + fill(document.form.unicodeValue.value, 4)); sampleWindow.document.writeln("
"); sampleWindow.document.writeln("&#" + uniDec + ";"); sampleWindow.document.writeln("
"); sampleWindow.document.writeln("
Hosted by www.Geocities.ws

"); } function setHexInput(inStr) { document.form.numIn.value=inStr; document.form.numIn.focus(); document.form.inBase[3].checked=true; document.form.convert.click(); } function setUniInput(inStr) { document.form.numIn.value=inStr; document.form.inBase[3].checked=true; document.form.convert.click(); document.form.unicodeValue.value=inStr; document.form.unicodeValue.focus(); document.form.getUniChar.click(); } function cleanUTF() { document.form.byte1.value = ""; document.form.byte2.value = ""; document.form.byte3.value = ""; document.form.byte4.value = ""; document.form.hexbyte1.value = ""; document.form.hexbyte2.value = ""; document.form.hexbyte3.value = ""; document.form.hexbyte4.value = ""; } function cleanUp() { document.form.numIn.value = ""; document.form.numIn.focus(); } function unLoadPage() { if (sampleWindow) { sampleWindow.close(); sampleWindow = null; } } // -->
Back to home

Binary, Hexadecimal, UTF-8 Converter

Input Base:
bin
oct
dec
hex or U+xxxx
Instructions

Enter number:
Bin:
Oct:
Dec:
Hex:
UTF-8 related:
Base 1st byte 2nd byte 3rd byte 4th byte
bin
hex
U+

Instructions

Enter a number in the topmost text field, and select the appropriate base of your input number to the left.

To convert a UTF-8 (one character only) byte sequence into the equivalent U+xxxx Unicode code value, fill in the (up to 4) bytes, starting with "1st byte", and select the radio button to the left of the base you are working in. You do not need to fill in both binary and hexadecimal forms. Click on Bytes to U+xxxx to parse the byte sequence. An error will appear in the Enter number field if the sequence seems to be malformed.

Clicking Show Unicode character will read the value inside the text field to its left.

Examples

The following buttons will alter the fields above and when applicable, display a particular Unicode character. The popup window depends on your browser settings and available fonts in order to display the character correctly.

Numerical examples



Unicode Character examples

U+0041
U+010d
U+03a9
U+2655
U+6d3b
Hosted by www.Geocities.ws

1