HTML Entity for Vertical Bar (|)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+007C

What Is Vertical Bar?

Vertical bar (|) is the Unicode character at U+007C in Basic Latin. Official name: VERTICAL LINE — also called the pipe. Used for separators, shell pipes, and code notation.

Remember
Character     |
Unicode       U+007C
Named entity  |  /  |  /  |
Hex entity    |
Decimal       |
CSS escape    \007C
Not the same  ¦ · ‖ · ⋮

Prefer typing | directly in normal HTML. Use | (or | / |) when you want an explicit entity form.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character|HTML text (preferred)
Named entity| / | / |HTML markup
Hex entity|HTML markup
Decimal entity|HTML markup
CSS escape\007CStylesheet content
Common usesSeparator · pipe · ORUI, shell, code

When to Use Which

SituationUse
Solid vertical bar / pipe (|)| or |
Broken vertical bar (¦)¦ (¦)
Double vertical line (‖)‖ (‖)
Vertical ellipsis (⋮)⋮ (⋮)
Nav / breadcrumb separatorHome | About | Contact
Generated text via ::before / ::aftercontent: "\007C"

Live Preview

Vertical bar rendered alone, as a separator, and next to related marks.

Large glyph |
Separator Home | About | Contact
Compared |  |  ¦  |  ‖  |  ⋮
Hint Compare: Solid | | Broken ¦ | Double ‖ | Ellipsis ⋮
With entities Named: | | Hex: | | Decimal: |

Complete HTML Example

One page that shows the bar with named, hex, decimal, CSS escape, and a typed character. Use View Output or open the live editor.

Named + Hex + Decimal + CSS + Typed

Five ways to produce |, plus a short separator example.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Vertical Bar (|)</title>
  <style>
    #point::after {
      content: "\007C";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &vert;</p>
  <p>Using Hex Code: &#x7C;</p>
  <p>Using HTML Code: &#124;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: |</p>
  <p>Home | About | Contact</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &vert; (also &verbar; / &VerticalLine;) resolves to U+007C — the clearest entity form.

2. Hex: U+007C → &#x7C; in HTML. Same glyph as the named entities.

3. Decimal: same code point as 124 → &#124;. Same result as hex and named.

4. CSS: use \007C in content (not an HTML entity). #point::after appends that | after the paragraph text.

5. Typed / separator: paste | in UTF-8 — usually the simplest choice for nav labels and code samples.

Pitfalls & Tips

Common mistakes when working with U+007C.

vs ¦

Not the broken bar

¦ (&brvbar;) is broken/parted. For a solid pipe, use | or &vert;.

vs ‖

Not a double line

‖ is DOUBLE VERTICAL LINE — two bars side by side, not a single pipe.

vs ⋮

Not a vertical ellipsis

⋮ (&vellip;) is three vertical dots (menu / “more”). Do not use it as a pipe.

I vs l

Easy to misread in fonts

In some fonts |, I, and l look similar. Prefer a monospace font in code, and add spacing in UI separators.

Aliases

&vert; = &verbar; = &VerticalLine;

All three named entities map to U+007C. Pick one style and stay consistent.

CSS vs HTML

Do not mix escapes

\007C belongs in CSS strings. &vert; / &#x7C; / &#124; belong in HTML.

A11y

Separators need context

For nav like Home | About, screen readers may announce “vertical line.” Prefer list markup or aria-hidden on purely decorative separators when appropriate.

Browser Support

The vertical bar (U+007C) and its entity forms (&vert;, &verbar;, &VerticalLine;, &#x7C;, &#124;, CSS \\007C) are supported in all mainstream browsers. It is a core ASCII character.

✓ Universal support

Vertical Bar (|)

Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+007C / &vert; Full support

Bottom line: Prefer typing | in normal HTML. Use &vert; when you need an entity. Do not confuse with ¦ (broken bar).

Key Takeaways

  • Unicode: vertical bar is U+007C (decimal 124) — glyph |.
  • HTML: type |, or use &vert; / &#x7C; / &#124;.
  • CSS: use \007C inside content for generated text.
  • Meaning: | is the solid pipe — not ¦ (broken), not ‖ (double), not ⋮ (ellipsis).

One line: U+007C → | / &vert; / &#x7C; / &#124; / CSS \007C.

Frequently Asked Questions

Type | directly in UTF-8, or use &vert; / &verbar; / &VerticalLine; (named), &#x7C; (hex), &#124; (decimal), or the CSS escape \007C in content. Typing | directly is usually best.
U+007C (VERTICAL LINE). Hex 7C, decimal 124. It belongs to Basic Latin (ASCII).
Yes. Use &vert;, &verbar;, or &VerticalLine;. Numeric forms &#124; and &#x7C; also work.
No. | is the solid vertical bar (U+007C). ¦ is the broken vertical bar (&brvbar;, U+00A6) — a different character.
Usually type | directly. Use &vert; or numeric forms when generating markup, documenting entities, or when escaping makes the pipe clearer in source.
HTML entities (&vert;, &#124;, or &#x7C;) go in markup. The CSS escape \007C goes in stylesheet strings (usually content on ::before/::after).

Did you know?

Vertical bar (|) is Unicode U+007C (decimal 124) — official name VERTICAL LINE in Basic Latin (ASCII). HTML5 names it &vert;, &verbar;, and &VerticalLine;. Used as a pipe in shells/code, a separator in UI text, and a logical OR in some languages. Do not confuse with broken bar ¦ (&brvbar;, U+00A6).

Next: Vertical Ellipsis

Learn the HTML entity for the vertical ellipsis (U+22EE).

Continue tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful