HTML Entity for Percent Sign (%)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+0025

What You'll Learn

How to display the Percent sign (%) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+0025 (PERCENT SIGN) in the Basic Latin block (U+0020–U+007F)—the standard symbol for parts per hundred in finance, statistics, and everyday content.

Render it with %, %, the named entity %, or CSS escape \25. Do not confuse % with U+2030 (‰, per mille, ‰) or U+2031 (‱, per ten thousand, ‱)—each represents a different scale.

⚡ Quick Reference — Percent Sign

Unicode U+0025

Basic Latin (U+0020–U+007F)

Hex Code %

Hexadecimal reference

HTML Code %

Decimal reference

Named Entity %

Standard HTML named entity

Reference Table
Name           Value
────────────   ──────────
Unicode        U+0025
Hex code       %
HTML code      %
Named entity   %
CSS code       \25
Meaning        Percent sign (parts per hundred)
Example        25% off
Related        U+2030 = per mille (‰, ‰)
               U+2031 = per ten thousand (‱, ‱)
Block          Basic Latin (U+0020–U+007F)
1

Complete HTML Example

A simple example showing % using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\25";
  }
 </style>
</head>
<body>
<p>Percent (hex): &#x25;</p>
<p>Percent (decimal): &#37;</p>
<p>Percent (named): &percnt;</p>
<p>Discount: 25&percnt; off</p>
<p id="point">Percent (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Percent sign (%) is universally supported in all browsers:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the Percent sign (%) in common content contexts:

Single symbol %
Discount 25% off today
Named entity &percnt; renders as %
Not the same as Per mille ‰  |  Per ten thousand ‱
Numeric refs &#x25; &#37; &percnt; \25

🧠 How It Works

1

Hexadecimal Code

&#x25; uses the Unicode hexadecimal value 25 to display the percent sign.

HTML markup
2

Decimal HTML Code

&#37; uses the decimal Unicode value 37 for the same character.

HTML markup
3

Named Entity

&percnt; is the standard HTML named entity for U+0025—readable and widely supported.

HTML markup
4

CSS Entity

\25 is used in CSS stylesheets in the content property of pseudo-elements for decorative markers.

CSS stylesheet
=

Percent sign result

All four methods render %. Unicode U+0025 in Basic Latin. Next: Period (.).

Use Cases

The Percent sign (%) is commonly used in:

💰 Finance

Interest rates, discounts, tax labels, and pricing tables.

📊 Statistics

Survey results, poll data, and percentage breakdowns in dashboards.

📈 Progress UI

Completion bars, upload progress, and loading indicators.

🛒 E-commerce

Sale badges, coupon labels, and promotional banners.

🔗 URLs & attributes

Encode % as &percnt; or &#37; in query strings when needed.

♿ Accessibility

Pair values with context (e.g. “25 percent”) for screen reader clarity.

💡 Best Practices

Do

  • Prefer &percnt; in HTML for readability when a named entity fits
  • Use &#x25; or &#37; in URLs or attributes where % may be ambiguous
  • Place the number before the symbol (e.g. 25&percnt;)
  • Set <meta charset="utf-8"> for reliable rendering
  • Distinguish % from per mille ‰ and per ten thousand ‱

Don’t

  • Confuse % with per mille ‰ or per ten thousand ‱
  • Use padded CSS notation like \00025 when \25 suffices for U+0025
  • Use CSS escape \25 in HTML text nodes
  • Leave raw % unencoded in URL query strings when it could be parsed incorrectly
  • Assume “percentage” and the % symbol are interchangeable in all locales without context

Key Takeaways

1

Four ways to render U+0025 in web content

&#x25; &#37; &percnt;
2

For CSS stylesheets, use \25 in the content property

3

Unicode U+0025 — PERCENT SIGN in Basic Latin

4

Distinct from per mille ‰ and per ten thousand ‱

5

Previous: Per Mille (‰)   Next: Period (.)

❓ Frequently Asked Questions

Use &#x25; (hex), &#37; (decimal), &percnt; (named entity), or \25 in CSS content. All four render %.
U+0025 (PERCENT SIGN). Basic Latin block (U+0020–U+007F). Hex 25, decimal 37, named entity percnt.
No. % (U+0025) is PERCENT SIGN (parts per hundred). ‰ (U+2030) is PER MILLE SIGN (&permil;, parts per thousand). They are different characters at different scales.
Use &percnt; or &#37; when % could be misread in URLs, attributes, or templating contexts. In plain text content, typing % directly is usually fine with UTF-8.
&percnt; is the HTML named entity for U+0025 (percent sign). It renders as % and is often the most readable choice in HTML markup.

Explore More HTML Entities!

Discover 1500+ HTML character references — punctuation, symbols, and more.

All HTML Entities →

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