U+005F
Underscore_
Underscore is a monochrome text character from the Unicode Basic Latin block, listed here under Punctuation and Basic Latin (ASCII). Copy it with one click, or use the hex, octal, decimal and HTML entity codes below to embed it in web pages, code, and documents.
Quick facts
- Unicode
- U+005F
- Decimal
- 95
- Hex
- 0x005F
- Octal
- 0o137
Unicode identity
| Format | Value | Copy |
|---|---|---|
| Code pointOfficial Unicode notation | U+005F | |
| Official nameUnicodeData.txt, Unicode 18.0.0 | LOW LINE | |
| Unicode 1.0 nameLegacy alias | SPACING UNDERSCORE | |
| DecimalBase 10 | 95 | |
| HexadecimalBase 16 | 0x005F | |
| OctalBase 8 | 0o137 | |
| BinaryBase 2 | 0000000001011111 | |
| General categoryPunctuation, connector | Pc | |
| Unicode blockU+0000–U+007F | Basic Latin | |
| Plane | Basic Multilingual Plane (BMP, Plane 0) |
HTML & CSS
| Format | Value | Copy |
|---|---|---|
| HTML entity (decimal) | _ | |
| HTML entity (hex) | _ | |
| CSS content escapeUse inside content: "…" | \005F | |
| URL encodedPercent-encoded UTF-8 | _ |
Programming languages
| Format | Value | Copy |
|---|---|---|
| JavaScript / TypeScript | \u005F | |
| JSONUTF-16 surrogate pairs | \u005F | |
| Python | \u005F | |
| Java / C# / Kotlin | \u005F |
Byte encodings
| Format | Value | Copy |
|---|---|---|
| UTF-81 byte | 5F | |
| UTF-16 (BE) | 005F | |
| UTF-32 (BE) | 0000005F |
How to type Underscore
Windows
Hold Alt and type +5F with the hex numeric keypad option enabled, or type 5F then press Alt+X in Word and most Office apps.
macOS
Enable the Unicode Hex Input keyboard, hold Option, and type 005F. Or open Character Viewer (Control+Command+Space) and search "Underscore".
Linux
Press Ctrl+Shift+U, type 5f, then press Space or Enter in GTK apps. IBus and most terminals support the same sequence.
HTML, CSS & code
Paste the character directly, or use the escapes above: _ in HTML, \005F in CSS, and \u005F in JavaScript.
Official Unicode reference
- Character name
- LOW LINE
- Unicode 1.0 name
- SPACING UNDERSCORE
- Block
- Basic Latin (U+0000–U+007F)
- General category
- Pc — Punctuation, connector
Data from the Unicode Character Database, version 18.0.0. See the official code chart for the Basic Latin block: U0000.pdf (PDF, unicode.org).
Frequently asked questions
How do I copy the Underscore symbol?
Click the Copy button at the top of this page, or select _ and press Ctrl+C (Cmd+C on Mac). It is plain Unicode text, so it pastes into documents, chats, code, and design tools.
What is the Unicode code point for Underscore?
Underscore is U+005F (decimal 95, hexadecimal 0x005F, octal 0o137). It lives in the Basic Latin block (U+0000–U+007F) of the Basic Multilingual Plane (BMP, Plane 0).
What is the official Unicode name of Underscore?
The Unicode Standard (version 18.0.0) names this character "LOW LINE"; its Unicode 1.0 name was "SPACING UNDERSCORE". Its General_Category is Pc (Punctuation, connector).
What is the HTML code for Underscore?
Use _ or _. In CSS, use content: "\005F".
How do I type Underscore in code?
JavaScript: "\u005F". Python: "\u005F". JSON and Java: "\u005F". The UTF-8 byte sequence is 5F.
Is Underscore an emoji?
No. Underscore is a text symbol and renders as a monochrome glyph in the current font. Some platforms may offer an emoji variant when U+FE0F is appended.
Related symbols in Punctuation
View all punctuation- Triangular bullet
- White bullet
- Pilcrow
- Section sign
- Dagger
- Double dagger
- Per mille
- Per ten thousand
- Left double quote
- Right double quote
- Left single quote
- Right single quote
- Double low quote
- Single low quote
- Inverted exclamation
- Inverted question
- Interrobang
- Double question mark
- Question exclamation
- Exclamation question
- Reference mark
- Overline
- Swung dash
- Wave dash