HTML Entity for Soft Hyphen (­)

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

What You'll Learn

How to insert Soft Hyphen (U+00AD) in HTML using numeric references, the named entity, and CSS escapes. This character is SOFT HYPHEN in the Latin-1 Supplement block (U+0080–U+00FF). It marks an optional break point inside a word—invisible unless the line wraps at that position.

Use the named entity ­, hex ­, decimal ­, or CSS \AD. ­ is the most readable option when writing HTML by hand. Do not confuse soft hyphen with Hyphen-Minus U+002D (-), Hyphen U+2010 (‐), or Non-Breaking Hyphen U+2011 (‑).

⚡ Quick Reference — Soft Hyphen

Unicode U+00AD

Latin-1 Supplement (U+0080–U+00FF)

Hex Code ­

Hexadecimal reference

HTML Code ­

Decimal reference

Named Entity ­

Standard HTML entity

Reference Table
Name           Value
────────────   ──────────
Unicode        U+00AD
Hex code       ­
HTML code      ­
Named entity   ­
CSS code       \AD
Behavior       Invisible unless word breaks
Not the same   U+002D = - (hyphen-minus)
               U+2010 = ‐ (hyphen)
               U+2011 = ‑ (non-breaking hyphen)
Block          Latin-1 Supplement (U+0080–U+00FF)
1

Complete HTML Example

A simple example placing soft hyphens in a long word inside a narrow container. Resize the viewport to see optional line breaks:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  .narrow { width: 8em; border: 1px solid #ccc; padding: 0.5rem; }
  #point::after { content: "\AD"; }
 </style>
</head>
<body>
<p class="narrow">Named: extraordi&shy;nary</p>
<p class="narrow">Hex: extraordi&#xAD;nary</p>
<p class="narrow">Decimal: extraordi&#173;nary</p>
<p id="point">CSS entity demo: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+00AD soft hyphen behavior is widely supported for optional word breaking:

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

👀 Live Preview

Soft hyphens are invisible until a line break is needed. Narrow the preview or resize your window:

Named entity extraordi­nary
Long compound inter­nation­alization
vs visible hyphen extra-ordinary (always shows -)
Monospace refs &#xAD; &#173; &shy; \AD

🧠 How It Works

1

Hexadecimal Code

&#xAD; references code point U+00AD using hex digits AD.

HTML markup
2

Decimal HTML Code

&#173; is the decimal equivalent (173) for the same character.

HTML markup
3

Named HTML Entity

&shy; is the standard named entity for U+00AD—the most readable choice in HTML source.

HTML markup
4

CSS Entity

\AD is the CSS escape for U+00AD, used in the content property of pseudo-elements.

CSS stylesheet
=

Optional break point

All four methods insert U+00AD. The glyph is invisible until a line wraps at that point, then a hyphen may appear. Next: Sound Recording Copyright.

Use Cases

Soft Hyphen (U+00AD) commonly appears in:

📱 Responsive design

Optional breaks as containers shrink on mobile and tablet.

📝 Long words

Technical terms, URLs, and compound words that may need wrapping.

📄 Narrow columns

Sidebars, cards, and multi-column layouts with limited width.

🌐 i18n content

Languages with long compound words and syllable break hints.

🔤 Typography demos

Examples showing &shy; alongside numeric references.

📖 Documentation

Entity guides for invisible formatting characters.

💡 Best Practices

Do

  • Prefer &shy; for readable hand-written HTML
  • Place soft hyphens at logical syllable boundaries in long words
  • Test wrapping in narrow viewports and sidebars
  • Use \AD only inside CSS content
  • Combine with CSS overflow-wrap for robust typography

Don’t

  • Write U+000AD—the correct notation is U+00AD
  • Use CSS \000AD with a leading zero unless required—prefer \AD
  • Substitute a visible hyphen (-) when you need an optional break point
  • Overuse soft hyphens in every word—they are for break hints only
  • Confuse &shy; with non-breaking hyphen U+2011 (‑)

Key Takeaways

1

Named entity for easy authoring

&shy;
2

Numeric references also insert U+00AD

&#xAD; &#173;
3

For CSS stylesheets, use \AD in the content property

4

U+00AD SOFT HYPHEN — invisible until a line break

❓ Frequently Asked Questions

Use &shy; (named entity), &#xAD; (hex), &#173; (decimal), or \AD in CSS content. Place it inside a word where an optional break is allowed.
U+00AD (SOFT HYPHEN). Latin-1 Supplement (U+0080–U+00FF). Hex AD, decimal 173.
When you need optional word breaks in long words for responsive layouts, narrow columns, or improved typography without always showing a visible hyphen.
HTML entities (&shy;, &#173;, or &#xAD;) go directly in markup inside words. The CSS escape \AD is used in stylesheets, typically in the content property of pseudo-elements.
Soft Hyphen is invisible by design. It only renders as a hyphen when the browser breaks the line at that point. If the word fits on one line, nothing appears.

Explore More HTML Entities!

Discover 1500+ HTML character references — typography, symbols, and formatting characters.

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