HTML Entity for Pencil (✏)

What You'll Learn
How to display the Pencil symbol (✏) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+270F (UPPER RIGHT PENCIL) in the Dingbats block (U+2700–U+27BF)—a classic pencil icon for edit actions, notes, and creative design.
Render it with ✏, ✏, or CSS escape \270F. There is no named HTML entity. Do not confuse ✏ with U+270E (✎, lower right pencil), U+2712 (✒, black nib), or emoji-style pencil variants in color fonts.
⚡ Quick Reference — Pencil
U+270FDingbats (U+2700–U+27BF)
✏Hexadecimal reference
✏Decimal reference
—Use numeric codes only
Name Value
──────────── ──────────
Unicode U+270F
Hex code ✏
HTML code ✏
Named entity (none)
CSS code \270F
Meaning Upper right pencil (edit / write icon)
Related U+270E = lower right pencil (✎)
U+2712 = black nib (✒)
U+270D = writing hand (✍)
Block Dingbats (U+2700–U+27BF)Complete HTML Example
A simple example showing ✏ using hexadecimal code, decimal HTML code, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point::after{
content: "\270F";
}
</style>
</head>
<body>
<p>Pencil (hex): ✏</p>
<p>Pencil (decimal): ✏</p>
<p>Edit note: ✏ Update your profile</p>
<p id="point">Pencil (CSS): </p>
</body>
</html>🌐 Browser Support
The Pencil symbol (✏) is widely supported in all modern browsers:
👀 Live Preview
See the Pencil symbol (✏) in UI and content contexts:
🧠 How It Works
Hexadecimal Code
✏ uses the Unicode hexadecimal value 270F to display the pencil symbol.
Decimal HTML Code
✏ uses the decimal Unicode value 9999 for the same character.
CSS Entity
\270F is used in CSS stylesheets in the content property of pseudo-elements for edit icons or decorative markers.
Pencil symbol result
All three methods render ✏. Unicode U+270F in Dingbats. Next: Per Ten Thousand (‱).
Use Cases
The Pencil symbol (✏) is commonly used in:
Inline edit links, form actions, and profile update controls.
Note-taking apps, comment sections, and draft indicators.
Blog headers, stationery themes, and writing-related branding.
Tutorial pages, how-to guides, and editable content labels.
Character pickers, entity documentation, and symbol guides.
Pair ✏ with visible text like “Edit”; add aria-label when used as an icon-only control.
💡 Best Practices
Do
- Use
✏or✏for inline pencil symbols - Include visible text like “Edit” alongside the icon for clarity
- Set
<meta charset="utf-8">for reliable rendering - Use the correct symbol—✏ not lower pencil ✎
- Pick one numeric style per project for consistency
Don’t
- Confuse ✏ with ✎ (lower right pencil) or ✒ (black nib)
- Use padded Unicode notation like U+0270F—the correct value is
U+270F - Use CSS escape
\270Fin HTML text nodes - Rely on ✏ alone as the only edit affordance without accessible labeling
- Assume every font renders Dingbats identically—test your typeface
Key Takeaways
Two HTML numeric references plus CSS for U+270F
✏ ✏For CSS stylesheets, use \270F in the content property
Unicode U+270F — UPPER RIGHT PENCIL in Dingbats
Distinct from lower right pencil ✎ and black nib ✒
Previous: Peace Symbol (☮) Next: Per Ten Thousand (‱)
❓ Frequently Asked Questions
✏ (hex), ✏ (decimal), or \270F in CSS content. There is no named entity. All three render ✏.U+270F (UPPER RIGHT PENCIL). Dingbats block (U+2700–U+27BF). Hex 270F, decimal 9999.Explore More HTML Entities!
Discover 1500+ HTML character references — punctuation, symbols, and more.
8 people found this page helpful
