Unicode encoding/decoding utility

This utility allows you to convert between Unicode characters entered on your keyboard or copied from a document, Unicode code points (numbers between 0 and 1114111) representing those characters, and octets (numbers between 0 and 256) representing the results of encoding the code points in various encodings. The encodings currently supported by this utility are ASCII, EBCDIC-500, Windows-1252, UTF-32, UTF-16, and UTF-8.

The utility is divided into three sections. The first section directly below this paragraph allows you to enter Unicode characters and see their corresponding code points. The second section allows you to encode Unicode code points into octets, and the third section allows you to decode octets into Unicode code points. Arrow icons like this: will copy results from one section to the input of another section. Be aware that any error indicators or control character indicators will be silently ignored when this is done.

Character conversion

Characters:
Code points:

Encoding

Enter one or more Unicode code points in hexadecimal format (separated by spaces) and their corresponding characters will be displayed. Any control characters will be replaced by symbols representing them, any surrogates will be replaced by SURROGATE, and any explicitly specified noncharacters will be replaced by NONCHARACTER.

The Unicode code points that you enter will also be transformed into sequences of bytes using various encodings. If a code point is not encodable by a given encoding, the sequence of bytes for the encoding will contain an ERROR indicator.

Code points:
Characters:
Encoding Bytes

Decoding

Enter one or more bytes in hexadecimal format (separated by spaces) and they will be transformed into sequences of Unicode code points using various encodings. If a sequence of bytes is not a valid representation of a Unicode code point in a given encoding, the result for the encoding will contain an ERROR indicator.

Bytes:
Encoding Code points Characters
Copyright ©2015–2024 Evan Pretti. All rights reserved. This software is provided by the author and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the author or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.