HTML Entity for Subscript Seven (₇)

Beginner
6 min read
Updated: Sep 2026
1 example
Unicode U+2087

What Is the Subscript Seven Entity?

Subscript Seven (₇) is the Unicode character at U+2087 in the Subscripts and Superscripts block. It looks like a small lowered 7 and is common in math and science text such as x₇ or C₇.

Remember
Character     ₇
Unicode       U+2087
Hex entity    ₇
Decimal       ₇
CSS escape    \2087
Named entity  (none)

All of these produce the same glyph: ₇. Prefer the Unicode character (or its entities) when you need that exact glyph; use <sub>7</sub> when you want semantic subscript formatting instead.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character₇HTML text (UTF-8)
Hex entity&#x2087;HTML markup
Decimal entity&#8327;HTML markup
CSS escape\2087Stylesheet content
Named entity—Not defined in HTML5
Semantic tag<sub>7</sub>HTML (formatting, not the ₇ glyph)

When to use which

SituationUse
Need the Unicode glyph ₇Type ₇, or &#x2087; / &#8327;
Generated text via ::before / ::aftercontent: "\2087"
Semantic subscript for any text<sub>7</sub>
Plain digit seven (not subscript)Type 7 (U+0037)
Looking for &sub7; or similarDoes not exist — use numeric form

Live Preview

Subscript Seven rendered in common writing contexts.

Inline text Seventh term: x₇ = 7
Large glyph ₇
In a formula C₇   Fe₂O₃   a₅ + a₆ + a₇
Monospace x₇ → seventh element
With entities Hex: ₇ | Decimal: ₇
Semantic <sub> x7 (tag styles digit 7)

Complete HTML Example

One page that shows Subscript Seven with the hex entity, decimal entity, CSS escape, and the semantic <sub> option. Use View Output or open the live editor.

Hex + Decimal + CSS + <sub>

Four ways to show a lowered seven in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Subscript Seven (₇) in HTML</title>
  <style>
    #point::after {
      content: "\2087";
    }
  </style>
</head>
<body>
  <p>Subscript Seven using Hex Code: &#x2087;</p>
  <p>Subscript Seven using HTML Code: &#8327;</p>
  <p id="point">Subscript Seven using CSS Entity: </p>
  <p>Semantic alternative: x<sub>7</sub></p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+2087 → &#x2087; in HTML. The browser turns it into ₇.

2. Decimal: same code point as 8327 → &#8327;. Same result as hex.

3. CSS: use \2087 in content (not an HTML entity). #point::after appends that ₇ after the paragraph text.

4. Semantic <sub>: x<sub>7</sub> styles digit seven as a subscript. Prefer this when you need meaning, not a specific Unicode glyph.

Pitfalls & Tips

Common mistakes when working with Subscript Seven entities.

Named?

No named entity

HTML5 does not define &sub7; or similar. Use numeric forms.

CSS vs HTML

Do not mix escapes

\2087 belongs in CSS. &#x2087; / &#8327; belong in HTML.

₇ vs 7 vs ⁷

Different characters

₇ is U+2087; digit 7 is U+0037; superscript ⁷ is U+2077.

Glyph vs tag

Choose intentionally

Use the Unicode glyph for exact look; use <sub> for semantic subscript on any text.

Semicolon

End references

Always finish with ; — write &#8327;, not &#8327.

Fonts

Check the glyph

Some fonts draw ₇ weakly. If appearance matters, test the font or prefer <sub>.

Browser Support

Subscript Seven (U+2087) and its numeric entity forms (&#x2087;, &#8327;, CSS \\2087) are supported in all mainstream browsers. Glyph shape depends on the font.

✓ Universal support

Subscript Seven (₇)

Encode with hex, decimal, or CSS escape — or use <sub> for semantic formatting.

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+2087 / entities Full support

Bottom line: Use &#x2087; or &#8327; for the Unicode glyph, \\2087 only inside CSS content, and <sub>7</sub> when you want semantic subscript.

Key Takeaways

  • Unicode: Subscript Seven is U+2087 (decimal 8327).
  • HTML: use &#x2087; or &#8327; when you need an entity.
  • CSS: use \2087 inside content for generated text.
  • Alternative: use <sub>7</sub> for semantic subscript formatting.

One line: U+2087 → &#x2087; / &#8327; / CSS \2087, or semantic <sub>7</sub>.

Frequently Asked Questions

Use &#x2087; (hex), &#8327; (decimal), or the CSS escape \2087 in the content property. All render ₇. You can also paste the character ₇ directly when your file is UTF-8.
U+2087 (hex 2087, decimal 8327). It belongs to the Subscripts and Superscripts Unicode block.
No. HTML5 does not define a named entity for ₇. Use numeric references like &#x2087; or &#8327;.
Use ₇ (or its entities) when you need the exact Unicode subscript glyph. Use <sub>7</sub> when you want semantic subscript formatting for arbitrary text.
No. Digit seven is U+0037. Superscript seven is U+2077 (⁷). Subscript Seven is U+2087 (₇) — a different character.
HTML entities (&#8327; or &#x2087;) go in markup. The CSS escape \2087 is used in stylesheets (usually in the content property of ::before/::after). Both render ₇.

Did you know?

Subscript seven is Unicode U+2087 (decimal 8327). HTML5 has no named entity for it — use &#x2087; or &#8327;. It is a different character from digit seven (U+0037) and from superscript seven ⁷ (U+2077).

Next: 7 Superscript

Learn the HTML entity for superscript seven (⁷) — a different Unicode character from ₇.

7 Superscript tutorial →

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