Unicode Converter
Convert between text and Unicode code points
Common Unicode Characters
❤
Heart
U+2764
★
Star
U+2605
☺
Smile
U+263A
✔
Check
U+2714
✘
Cross
U+2718
©
Copyright
U+00A9
®
Registered
U+00AE
™
Trademark
U+2122
°
Degree
U+00B0
±
Plus-Minus
U+00B1
∞
Infinity
U+221E
π
Pi
U+03C0
What Is Unicode?
Unicode is the universal character encoding standard that assigns a unique number — called a code point — to every character in every writing system on Earth. Before Unicode, different languages and regions used incompatible character sets (ASCII for English, Shift-JIS for Japanese, ISO 8859 for European languages), making it impossible to reliably display text across different computers and software. Unicode solved this by creating a single unified system that now represents over 149,000 characters from 161 modern and historic scripts, plus emojis, mathematical symbols, and technical notation.
Each Unicode character is identified by a unique code point written as U+ followed by a hexadecimal number. For example the letter "A" is U+0041, the Chinese character "中" is U+4E2D, and the emoji "😊" is U+1F60A. This converter translates between readable text and the numeric code points in multiple standard formats — hexadecimal (U+xxxx), plain decimal integers, and HTML entities — so developers, designers, and anyone working with international text can quickly convert between representations.
Unicode Representation Formats
Unicode code points can be expressed in several standard formats, each serving different use cases in programming and web development. This converter handles all four major representations:
| Format | Example ("A") | Typical Use |
|---|---|---|
| Hex Code Point | U+0041 | Character maps and documentation |
| Decimal | 65 | JavaScript codePointAt() |
| HTML Entity (decimal) | A | HTML source code |
| HTML Entity (hex) | A | HTML/CSS color values |
The Text to Unicode mode converts any text into all four formats simultaneously. The reverse modes accept Unicode code points (U+0048), decimal numbers (72), or HTML entities (H) and convert them back to readable text.
Unicode Code Point Extraction
Where:
- str= The input text string
- index= Position of the character in the string
- codePoint= Integer code point value in decimal
How to Use the Unicode Converter
This converter supports four modes of operation, selectable from the tab buttons at the top of the page:
- Text to Unicode: Enter any text — letters, symbols, emojis, or mixed scripts — and get the code points in hexadecimal (U+xxxx), decimal integers, and HTML entity formats (both decimal and hex). Each character's code point is separated by a space for clarity.
- Unicode to Text: Paste space-separated or comma-separated Unicode code points such as "U+0048 U+0065" or "\u0048 \u0065" and see the original text. The converter accepts both the U+ prefix format and raw hex values.
- Decimal to Text: Enter space or comma-separated decimal code point values like "72 101 108 108 111" and convert back to text. This is useful when working with JavaScript charCodeAt() output or database-stored integer values.
- HTML Entity to Text: Paste HTML entities like "Hel" and get the decoded text. Both decimal (A) and hexadecimal (A) entity formats are supported.
The common characters reference grid at the bottom of the page shows 12 frequently used Unicode symbols with their code points for quick lookup without typing.
Common Unicode Characters and Their Uses
Unicode extends far beyond the basic Latin alphabet. Some of the most frequently used Unicode characters in everyday digital communication include symbols like the heart (♥, U+2665), star (★, U+2605), check mark (✔, U+2714), and cross mark (✘, U+2718). These symbols appear in social media posts, user interfaces, and formatted documents — they are just regular text characters with code points that differ from standard alphanumeric characters.
Technical and mathematical symbols form another large segment of commonly used Unicode characters. The degree symbol (°, U+00B0), plus-minus sign (±, U+00B1), infinity symbol (∞, U+221E), and Greek letters like pi (π, U+03C0) are essential for scientific notation, engineering documents, and educational materials. Rather than using special markup or embedded images, these symbols can be included directly in text using their Unicode code points.
Copyright and trademark symbols — © (U+00A9), ® (U+00AE), and ™ (U+2122) — are frequently represented as HTML entities because they are not easily typed on standard keyboards. The HTML entity conversion mode makes it straightforward to switch between the visible symbol and the entity code format required for HTML source files.
Working with Unicode in Programming Languages
Unicode handling varies across programming languages, and this converter bridges the gaps between them. In JavaScript, characters can be represented using String.fromCodePoint(65) from decimal values or escape sequences like \u0041 from hex. The charCodeAt() and codePointAt() methods do the reverse — extracting decimal code points from strings — exactly what this converter does in Text to Unicode mode.
In Python, the ord('A') function returns the decimal code point (65), and chr(65) converts back. The \u and \U escape sequences in Python string literals accept 4-digit and 8-digit hexadecimal values respectively. Java uses \u0041 escape sequences and the Character.codePointAt() method for extraction. By providing decimal, hexadecimal, and HTML entity output simultaneously, this converter matches whichever format your programming language or framework requires.
In HTML and web development, Unicode characters can be included either directly when the document is saved as UTF-8, or through HTML entities for environments where direct encoding is not reliable. Numeric character references like A (decimal) and A (hex) work in all HTML versions and are immune to encoding issues. The HTML entity conversion mode produces both formats, making it a reliable reference for embedding special characters in web pages, email templates, and XML documents.
Worked Examples
Converting 'Hello' to Unicode
Problem:
Convert the word 'Hello' to its Unicode code point representations in all four formats.
Solution Steps:
- 1Process each character: H = U+0048, e = U+0065, l = U+006C, l = U+006C, o = U+006F
- 2Hexadecimal code points: U+0048 U+0065 U+006C U+006C U+006F
- 3Decimal equivalents: 72 101 108 108 111
- 4HTML entities (decimal): Hell&var(--foreground);
Result:
Hex: U+0048 U+0065 U+006C U+006C U+006F. Each number uniquely identifies a character — 'H' is always U+0048 regardless of font or platform.
Decoding Emoji Code Points
Problem:
A developer sees the code point U+1F60A in documentation. What character does this represent?
Solution Steps:
- 1Select Unicode to Text mode
- 2Enter: U+1F60A
- 3The converter decodes the hexadecimal value 1F60A back to the emoji
- 4Result: 😊 (smiling face with smiling eyes)
Result:
U+1F60A = 😊. Emojis use code points above U+FFFF, which modern JavaScript's codePointAt() handles transparently, though older code using charCodeAt() requires surrogate pair handling.
Decoding HTML Entities from a Web Page
Problem:
Someone sends you text with HTML entities: MyCalcBuddy. What does it say?
Solution Steps:
- 1Select HTML Entity to Text mode
- 2Paste the entire entity string
- 3The converter processes each &#...; sequence
- 4Result: MyCalcBuddy
Result:
The entities decode to 'MyCalcBuddy'. HTML entity encoding protects text from being interpreted as markup and is commonly used in URLs, form submissions, and cross-system data exchange.
Tips & Best Practices
- ✓Use Text to Unicode mode to find the code point of any special character — paste it directly and see all four formats instantly.
- ✓HTML entity encoding protects characters like <, >, &, and quotes from being misinterpreted as HTML markup by the browser.
- ✓Emojis use code points above U+FFFF — they work with modern JavaScript's String.fromCodePoint() but may need surrogate pair handling in legacy code.
- ✓When copying into source code, use \u0041 for JavaScript, Java, and Python string literals; use U+0041 for documentation and comments.
- ✓The common character grid at the bottom of this page shows 12 frequently used Unicode symbols with their code points for quick reference without typing.
- ✓Both spaces and commas are accepted as separators when inputting multiple code points in Unicode to Text mode.
- ✓HTML entities are case-insensitive for hex digits — &#x41; and &#X41; produce the same character 'A'.
- ✓Modern text editors and IDEs save files as UTF-8 by default, which can handle any Unicode character directly without entity encoding.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-06
Help us improve!
How would you rate the Unicode Converter?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: NIST Guide to SI Units
by National Institute of Standards