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

FormatValueCopy
Code pointOfficial Unicode notationU+005F
Official nameUnicodeData.txt, Unicode 18.0.0LOW LINE
Unicode 1.0 nameLegacy aliasSPACING UNDERSCORE
DecimalBase 1095
HexadecimalBase 160x005F
OctalBase 80o137
BinaryBase 20000000001011111
General categoryPunctuation, connectorPc
Unicode blockU+0000–U+007FBasic Latin
PlaneBasic Multilingual Plane (BMP, Plane 0)

HTML & CSS

FormatValueCopy
HTML entity (decimal)_
HTML entity (hex)_
CSS content escapeUse inside content: "…"\005F
URL encodedPercent-encoded UTF-8_

Programming languages

FormatValueCopy
JavaScript / TypeScript\u005F
JSONUTF-16 surrogate pairs\u005F
Python\u005F
Java / C# / Kotlin\u005F

Byte encodings

FormatValueCopy
UTF-81 byte5F
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.

View all punctuation