HTML Entity for Uppercase G (G)

What You'll Learn
How to display the uppercase letter G in HTML using entity methods. The letter G is the seventh letter of the Latin alphabet (U+0047) and is part of the Basic Latin block. In most cases you can type it directly; numeric or CSS entities are useful when escaping, generating content via CSS, or ensuring correct encoding.
This character can be displayed using the character itself, a hexadecimal reference, a decimal reference, or a CSS escape in the content property. There is no named HTML entity like &G; for this letter.
⚡ Quick Reference — Uppercase G Entity
U+0047Basic Latin (ASCII)
GHexadecimal reference
GDecimal reference
GType directly (no named entity)
Name Value
──────────── ──────────
Unicode U+0047
Hex code G
HTML code G
Named entity (none — use G directly)
CSS code \47
Meaning Latin capital letter G
Related U+0067 = g (lowercase)
Block Basic Latin (U+0000–U+007F)Complete HTML Example
A simple example showing the uppercase letter G using hexadecimal code, decimal HTML code, the character directly, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\47";
}
</style>
</head>
<body>
<p>Symbol (hex): G</p>
<p>Symbol (decimal): G</p>
<p>Symbol (direct): G</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>🌐 Browser Support
The uppercase letter G (U+0047) is universally supported in all browsers and platforms as part of Basic Latin:
👀 Live Preview
See the uppercase letter G in common text contexts:
🧠 How It Works
Hexadecimal Code
G uses the Unicode hexadecimal value 47 to display the letter. The x prefix indicates hexadecimal format.
Decimal HTML Code
G uses the decimal Unicode value 71 to display the same character. This is the ASCII/Unicode decimal for G.
Direct Character
Type G directly in HTML. There is no named entity like &G;; the character itself is the standard approach in body text.
CSS Entity
\47 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Same visual result
All methods produce the glyph: G. Unicode U+0047 sits in Basic Latin. The lowercase form is U+0067 (g). In normal text, typing G is preferred.
Use Cases
The uppercase letter G (or its entity forms) is commonly used in:
Standard character in paragraphs, articles, and any Latin-script text. Usually typed directly.
Use in ARIA labels, alt text, placeholders, and attribute values; numeric entities help when escaping is needed.
Reference in font specs, CSS content, or generated text via CSS entities.
Teaching the alphabet, phonics, or character encoding; entity codes clarify the exact character.
When building HTML or strings programmatically, numeric entities ensure correct output.
Part of Basic Latin used across languages; entities can help in legacy encoding contexts.
CSS content or list-style may use the character via entity for styling.
💡 Best Practices
Do
- Type
Gdirectly in body content; use entities only when necessary - Serve pages as UTF-8 so Basic Latin characters render without entities
- Use numeric references (
GorG) when escaping is required - Use
\47in CSScontentwhen generating the letter via pseudo-elements - Remember uppercase G is U+0047 and lowercase g is U+0067 when case matters
Don’t
- Overuse numeric entities for
Gin normal readable text - Expect a named HTML entity like
&G;—none exists for this letter - Put CSS escape
\47in HTML text nodes - Confuse
G(U+0047) with accented variants like Ǵ (G acute) - Mix entity styles randomly in one file without reason
Key Takeaways
Type G directly, or use hex/decimal references
G GFor CSS stylesheets, use the escape in the content property
\47Unicode U+0047 — LATIN CAPITAL LETTER G
Seventh letter of the Latin alphabet (Basic Latin block)
Previous: Uppercase F Turned Small (ⅎ) Next: Uppercase G Acute (Ǵ)
❓ Frequently Asked Questions
G directly, or use G (hex), G (decimal), or \47 in CSS content. For most content, typing G is standard; use numeric or CSS entities when escaping or generating via CSS.U+0047 (LATIN CAPITAL LETTER G). Basic Latin block. Hex 47, decimal 71. It is the seventh letter of the Latin alphabet.::before/::after, ensuring encoding in legacy systems, or building strings programmatically. In normal body text, typing G is preferred.G or G) is used in HTML content or attributes. The CSS entity (\47) is used in CSS, e.g. in the content property of pseudo-elements. Both produce G but in different contexts.&G; for the letter G. Use the character G directly, or numeric references G (decimal) or G (hex). Named entities are mainly for characters with special meaning (e.g. <, &).Explore More HTML Entities!
Discover 1500+ HTML character references — letters, symbols, and more.
8 people found this page helpful
