HTML Entity for Uppercase G (G)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+0047

What Is the Uppercase G Entity?

Uppercase G (G) is the Basic Latin character at Unicode U+0047 (LATIN CAPITAL LETTER G). You can type G directly in HTML, or write it with a numeric character reference when you need an explicit entity form.

Remember
Character     G
Unicode       U+0047
Hex entity    G
Decimal       G
CSS escape    \0047
Named entity (none)
Official name LATIN CAPITAL LETTER G

All of these produce the same glyph: G. Related: Uppercase G Acute (U+01F4) and Lowercase G (U+0067).

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct characterGHTML text (UTF-8) — preferred
Hex entityGHTML markup
Decimal entityGHTML markup
CSS escape\0047Stylesheet content
Named entity—Not defined in HTML5

When to Use Which

SituationUse
Normal body textType G directly
Need an explicit entityG or G
Generated text via ::before / ::aftercontent: "\0047"
Capital G with acuteUse Ǵ (U+01F4)
Looking for a named entityNone for U+0047 — use numeric form or type G

Live Preview

Capital G in common text contexts.

Large glyph G
In a word Game · Grade · Graph
Compared G Ǵ g
Alphabet … E F G H I …
With entities Hex: G | Decimal: G

Complete HTML Example

One page that shows this letter with hex, decimal, direct character, and CSS. Use View Output or open the live editor.

Hex + Decimal + Direct + CSS

All common ways to produce G in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Uppercase G</title>
  <style>
    #point::after {
      content: "\0047";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x47;</p>
  <p>Using HTML Code: &#71;</p>
  <p>Using Direct Character: G</p>
  <p id="point">Using CSS Entity: </p>
  <p>The letter G follows F in the alphabet.</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex / decimal: U+0047 → &#x47; or &#71; in HTML.

2. Direct: typing G in a UTF-8 file is the simplest and preferred approach.

3. CSS: use \0047 in content (not an HTML entity). The four-digit form avoids ambiguity with following hex digits.

4. Sentence: shows ordinary text use — no entity required for everyday letters.

Pitfalls & Tips

Common mistakes when working with this character.

Prefer

Type G directly

For normal text, typing G is clearer than an entity. Use numeric forms only when you need them.

Named?

No named entity

HTML5 does not define a named entity for U+0047. Use &#71;, &#x47;, or type G.

Look-alikes

Not G acute

U+0047 is plain G. U+01F4 is Ǵ. Do not swap them.

CSS

Prefer a four-digit escape

Use \0047 (not bare \47) so a following digit is not absorbed into the escape.

Case

Uppercase vs lowercase

Lowercase is U+0067 (g / &#103;). Case folding is a separate concern from entities.

Semicolon

End references

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

Browser Support

Uppercase G / LATIN CAPITAL LETTER G (U+0047) and its numeric entity forms (&#x47;, &#71;, CSS \\0047) are supported in all mainstream browsers as a core ASCII letter.

✓ Universal support

Uppercase G

Type G directly, or encode with hex, decimal, or CSS escape in UTF-8 HTML.

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

Bottom line: Prefer typing G in body text. Use &#x47; / &#71; when you need an entity, and \\0047 only inside CSS content.

Key Takeaways

  • Unicode: this letter is U+0047 (decimal 71) — LATIN CAPITAL LETTER G.
  • HTML: type G, or use &#x47; / &#71; when you need an entity.
  • CSS: use \0047 inside content for generated text.
  • Watch out: U+0047 ≠ U+01F4 (Ǵ) ≠ U+0067 (g).

One line: U+0047 → type G / &#x47; / &#71; / CSS \0047.

Frequently Asked Questions

Type G directly in UTF-8 HTML, or use &#x47; (hex), &#71; (decimal), or the CSS escape \0047 in the content property. All render U+0047.
U+0047 (hex 47, decimal 71). Unicode names it LATIN CAPITAL LETTER G. It belongs to Basic Latin (ASCII) and is the seventh letter of the English alphabet.
No. ASCII letters like G do not have named HTML entities in HTML5. Use numeric references like &#71; or &#x47; when you need an entity form.
For normal body text, type G directly. Use entities when generating content in CSS, when you want explicit encoding, or when escaping is required.
U+0047 is ordinary capital G. U+01F4 is LATIN CAPITAL LETTER G WITH ACUTE (Ǵ). U+0067 is lowercase g. They are different characters.
HTML entities (&#71; or &#x47;) go in markup. The CSS escape \0047 is used in stylesheets (usually in the content property of ::before/::after). Both render the same glyph.

Did you know?

Uppercase G is Unicode U+0047 (decimal 71) — official name LATIN CAPITAL LETTER G in Basic Latin (ASCII). HTML5 has no named entity for it — typing G directly is usually best.

Next: Uppercase G Acute

Learn the HTML entity for Uppercase G Acute — next in this sequence.

Continue 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