U+2500Box Drawings Light Horizontal

Horizontal Line Symbol

Box Drawings Light Horizontal (─) shown large, with its baseline, x-height and cap height
Alt code
Alt 196
HTML
─
Unicode
U+2500

The horizontal line symbol (─) is Unicode U+2500, HTML ─, Alt 196 on Windows.

The light horizontal line is the base of ASCII tables and tree views. Repeat it to draw a clean rule that survives in any monospace context. ─ is the box drawings light horizontal, assigned to Unicode code point U+2500. Because it is a real text character rather than an image, it survives copy and paste into documents, chat apps, spreadsheets and source code. Copy it with one click, or grab the exact HTML entity, CSS escape and JavaScript string for your project below.

Render test

Checking whether this device has a font that can draw ─.

Box Drawings Light Horizontal in every code representation: Unicode, HTML, CSS, JavaScript, UTF-8/UTF-16 and Windows alt code.
Symbol─
UnicodeU+2500
NameBox Drawings Light Horizontal
HTML (decimal)─
HTML (hex)─
CSS content\2500
JavaScript / JSON\u2500
UTF-8 bytes0xE2 0x94 0x80
UTF-16 units0x2500
Windows alt codeAlt 196

Source: Unicode Character Database. Code point verified as assigned in Unicode 17.0. Last updated . Report an error

How do you type the box drawings light horizontal on each platform?

Find your platform in the first column.

Every way to type the box drawings light horizontal ─, by platform
WhereHow to type it
Any deviceClick the ─ at the top of this page. It goes straight to your clipboard, and you paste it with Ctrl+V on Windows or Cmd+V on a Mac. This is the only method that behaves identically everywhere.
WindowsHold Alt and type 196 on the numeric keypad, then release Alt. This is the code page 437 number, the old DOS set that US-English Windows uses for codes without a leading zero; other system languages can map it to a different character. The number row above the letters does not work for this.
macOSAdd Unicode Hex Input under Keyboard settings, switch to it, then hold Option and type 2500. Without that input source, open the Character Viewer with Control+Command+Space and search for box drawings light horizontal.
Linux and ChromeOSPress Ctrl+Shift+U, type 2500, then press Enter or the space bar. This works in GTK applications and with IBus.
Microsoft WordType 2500 in the document, then press Alt and X together with the cursor immediately after the last digit. Word replaces the digits with ─.
Google DocsInsert, then Special characters, then paste U+2500 or type box drawings light horizontal in the search box. You can also draw the shape in the sketch pad on the right.
Excel and Google SheetsUse the formula UNICHAR(9472) in a cell. Copy the cell and paste it as a value if you want the character rather than the formula.
HTMLWrite ─ or ─. There is no standard named entity for this character. On a page served as UTF-8 the character itself also works.
CSSUse content: "\2500" inside a ::before or ::after rule. Terminate the escape with a space if the next character is also a hexadecimal digit.
JavaScriptThe escape \u2500 produces this character inside a string literal, and the same escape is valid in JSON.

More detail per platform: Windows alt codes, special characters on a Mac, special characters in Word and HTML entities.

Frequently asked questions

How do I copy the box drawings light horizontal symbol?

Press the Copy ─ button at the top of this page, or click the large ─, and it is placed on your clipboard. Paste it anywhere with Ctrl+V or Cmd+V. It is a real text character, so it works in documents, chats and code.

What is the Unicode code point for box drawings light horizontal?

The box drawings light horizontal has the Unicode code point U+2500. In HTML you can write it as ─ or ─.

What is the alt code for the box drawings light horizontal symbol?

On Windows, hold the Alt key and type 196 on the numeric keypad, then release Alt. Copying the ─ from this page is quicker and works on any device.

Can I use the box drawings light horizontal symbol in HTML and CSS?

Yes. In HTML write ─, and in CSS use content: "\2500" inside a ::before or ::after rule. The code table on this page has copy buttons for both.

Related symbols