Look up hexadecimal codes for special characters

Checkbox hex codes (U+2610, U+2611, U+2612) plus comma, dot, copyright, new line, Enter, Esc and 0x00, with notes on copying, encoding and accessibility.

If you need a checkbox symbol for a document, a web page or a code string, you first need its hexadecimal code. That code points to the same character no matter how you write it, so looking it up does not change your text. The real question is whether the character will display, copy and read correctly where you send it. This guide gives the checkbox codes first, then the codes for punctuation, letters and control characters such as new line and Escape, then the limits to check before you rely on any of them.

Checkbox and check mark codes

Symbol | Unicode name | Code point | Decimal | HTML hex entity | UTF-8 bytes
☐ | BALLOT BOX | U+2610 | 9744 | ☐ | E2 98 90
☑ | BALLOT BOX WITH CHECK | U+2611 | 9745 | ☑ | E2 98 91
☒ | BALLOT BOX WITH X | U+2612 | 9746 | ☒ | E2 98 92
🗹 | BALLOT BOX WITH BOLD CHECK | U+1F5F9 | 128505 | 🗹 | F0 9F 97 B9
✓ | CHECK MARK | U+2713 | 10003 | ✓ | E2 9C 93
✔ | HEAVY CHECK MARK | U+2714 | 10004 | ✔ | E2 9C 94
✅ | WHITE HEAVY CHECK MARK | U+2705 | 9989 | ✅ | E2 9C 85
✗ | BALLOT X | U+2717 | 10007 | ✗ | E2 9C 97

An empty box paired with a checked box is usually U+2610 and U+2611. U+2705 has emoji presentation by default, so it often appears as a colored icon. U+2611 and U+2714 can also switch to emoji style when followed by the variation selector U+FE0F. U+1F5F9 was added to Unicode later than the others and may be missing from some fonts.

Is a Unicode checkbox suitable for your use?

For printed or static content, such as a checklist in a document, a status column in a table, or a short message, a Unicode checkbox works well. It is a real text character, so you can copy, search and resize it like any other letter, and it needs no image. The tradeoff is that it only shows a symbol. It cannot be clicked, it carries no checked or unchecked state for software, and how it looks depends on the font and platform. Use a real form control in interactive web forms. Use a plain-text marker such as [ ] and [x], or the words "done" and "not done", when the destination may use a non-Unicode encoding, when the meaning must be clear to screen reader users, or when other software must parse the status.

What a "hex code" actually refers to

People use "hex code" for several different things, and lookup tables mix them up. Converting between these forms changes only how the character is written. The character stored in your text stays the same.

  • Code point: the character's permanent Unicode number, written as U+2611. This is the same everywhere.
  • Encoded bytes: how the code point is stored in a file. In UTF-8, U+2611 becomes the three bytes E2 98 91. In UTF-16 it is the single unit 2611. A hex viewer shows bytes, not code points.
  • Escape or entity: how you type the code point in a specific language, such as ☑ in HTML or \u2611 in JavaScript.
  • Key code: a number for a physical key, not a character. Keyboard key codes are covered in the Enter section below.
  • Color hex code: a value like #FF0000 that describes a color. It is unrelated to characters.

Writing the code in common formats

HTML (hex):      ☑
HTML (decimal):  ☑
CSS content:     content: "\2611";
JavaScript:      "\u2611"   or   "\u{2611}"
Python:          "\u2611"   or   "\N{BALLOT BOX WITH CHECK}"
Word (Windows):  type 2611, then press Alt+X

Above U+FFFF (e.g. U+1F5F9):
HTML:            🗹
JavaScript:      "\u{1F5F9}"   (or the surrogate pair "\uD83D\uDDF9")
Python:          "\U0001F5F9"

Comma, dot and their lookalikes

The ordinary comma is 0x2C (decimal 44) and the ordinary period or dot is 0x2E (decimal 46). Both are ASCII, so each takes a single byte in UTF-8. Several characters look similar but are different, and a search or parser that expects the ASCII character will not match them.

Symbol | Name | Code point | UTF-8 bytes
, | COMMA | U+002C | 2C
. | FULL STOP | U+002E | 2E
· | MIDDLE DOT | U+00B7 | C2 B7
• | BULLET | U+2022 | E2 80 A2
… | HORIZONTAL ELLIPSIS | U+2026 | E2 80 A6
, | FULLWIDTH COMMA | U+FF0C | EF BC 8C
、 | IDEOGRAPHIC COMMA | U+3001 | E3 80 81
، | ARABIC COMMA | U+060C | D8 8C

Copyright symbol

The copyright sign © is U+00A9 (decimal 169). In HTML it can be written as ©, © or ©. In UTF-8 it takes two bytes, C2 A9. If those bytes are read as Windows-1252 instead of UTF-8, they display as "©". That garbled pair means an encoding mismatch, not a wrong code. The registered sign ® is U+00AE.

Letters A to Z, the digit 0, and 0x00

  • Uppercase A to Z: 0x41 to 0x5A.
  • Lowercase a to z: 0x61 to 0x7A. Each lowercase letter is exactly 0x20 higher than its uppercase form, but this rule holds only for basic ASCII letters.
  • Digits 0 to 9: 0x30 to 0x39. The hex code for the digit zero is 0x30.
  • Space: 0x20.

0x00 is not the digit zero. It is the NUL control character. Many C-style programs treat it as the end of a string, and many text fields remove or reject it. It is invisible and can cut text off without warning, so do not paste it into documents or web forms.

New line, Enter and Escape

Character | Hex | Decimal | Common escapes
Line feed (LF, "new line") | 0x0A | 10 | \n,
Carriage return (CR) | 0x0D | 13 | \r,
Escape (ESC) | 0x1B | 27 | \x1b, \033, \e in some shells
NUL | 0x00 | 0 | \0

A line break is not always one byte. Unix-like systems end lines with LF (0A). Windows text files typically use CR followed by LF (0D 0A), and classic Mac OS used CR alone. Mixing these is a common reason a file shows doubled breaks or one long line. In HTML, a raw line break in normal text collapses into a space unless the element preserves whitespace.
The Enter key has no single hex code. In a terminal, pressing Enter usually sends CR (0x0D), and the terminal may convert it to LF. Browser keyboard events report it as key code 13 (0x0D). At the hardware level, USB keyboards use HID usage 0x28 for Return/Enter. Which one you need depends on whether you are handling characters, browser events or raw keyboard input.
ESC (0x1B) starts terminal control sequences. For example, ESC followed by [0m resets text styling in ANSI-compatible terminals. Like NUL, it does not belong in shared documents.

Will the character stay readable after copying or sharing?

  • Copy and paste: between Unicode-aware applications, the code point normally copies unchanged. If the destination uses a legacy encoding that has no slot for the character, it may become a question mark. If the bytes are decoded with the wrong encoding, a check mark can turn into garbage such as "✓".
  • Fonts: if the reader's font lacks the glyph, they may see an empty box or a substitute symbol. An unchecked ballot box and a missing-glyph box can look almost the same, which is a real risk for checklists.
  • Emoji styling: U+2705, and other check marks followed by U+FE0F, may appear in color and at a different size from the text around them, depending on the platform.
  • Search and editing: find-in-page matches by code point, so searching for ✓ will not find ☑ or ✔. Code that checks for checked items must test for the exact character you used.
  • Accessibility: a symbol is not a form control. Screen readers announce symbols using their own pronunciation rules and verbosity settings, so a checkbox character may be read by its name, read differently, or skipped. Where the status matters, include a text word next to it, or use a real checkbox in interactive interfaces.
  • Control characters: NUL, ESC and stray CR characters are invisible, and destinations may strip, reject or misread them.

Use plain text instead when you cannot control the encoding or font, when a machine has to read the status, or when the meaning must come through to every reader. A simple pattern such as "[x] Done" and "[ ] To do" uses only ASCII. Some Markdown renderers that support task lists turn this pattern into checkboxes.

What this guide does not verify

The code points, decimal values and UTF-8 byte sequences above come from the Unicode and ASCII standards. No rendering tests were run for particular apps, fonts, messaging services or screen readers, so this guide cannot say how a given symbol looks or sounds in any specific place. Before relying on a checkbox character in published or shared content, test it in the actual destination, and with the assistive technology your readers use if that matters for your audience.