Unicode Character "―" (U+2015)

The character (Horizontal Bar) is represented by the Unicode codepoint U+2015. It is encoded in the General Punctuation block, which belongs to the Basic Multilingual Plane. It was added to Unicode in version 1.1 (June, 1993). It is HTML encoded as ―.

Main Unicode Properties

Name Horizontal Bar
Unicode Codepoint U+2015
Unicode Version 1.1 (June, 1993)
Block General Punctuation
Plane Basic Multilingual Plane

Bidirectional Data

Bidirectional class Other Neutral (ON)
Is mirrored? No

Other Unicode Data

U+2015 Conversion

HTML (decimal) ―
HTML (hex) ―
HTML (named) ―
URL Escape Code %E2%80%95
CSS \002015
JavaScript, JSON \u2015
C, C++, Java \u2015
Python \u2015
Rust \u{2015}
Ruby \u2015

How to type "―"

  • Windows ?: Hold Alt, then type 2 0 1 5. Release Alt.
  • Mac ?: Hold Alt ⌥, then type 2 0 1 5. Release Alt.


  • Times, Times New Roman, serif
  • Helvetica, Arial, sans-serif
  • Courier, Courier New, monospace

UTF Encodings

UTF-8 (hex) 0xE2 0x80 0x95
UTF-16 (hex) 0x2015
UTF-32 (hex) 0x00002015