How to Type ğ (G with breve) on HTML
The letter ğ does not have its own key on an English keyboard, but HTML still makes it easy to type. Use ğ, or pick one of the other methods in this guide. ğ appears in Turkish.
ğ on HTML: ğ
Ğ on HTML: Ğ
Or copy it:
Method 1: Codes for web pages
| Format | Code for ğ |
|---|---|
| Decimal entity | ğ |
| Hex entity | ğ |
| CSS content | content: "\011F"; |
| JavaScript | "\u011F" |
| URL encoded | %C4%9F |
| UTF-8 bytes | C4 9F |
Method 2: Type it directly with UTF-8
If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste ğ straight into the HTML. Entities are only needed when your editor or database cannot store the character.
Method 3: Watch for normalization
ğ can also be written as g plus a combining mark. Both look the same but compare as different strings. In JavaScript, call str.normalize("NFC") before comparing or searching.
How to type the capital Ğ
The uppercase form works the same way with Shift added where a letter is typed.
Codes for web pages
| Format | Code for Ğ |
|---|---|
| Decimal entity | Ğ |
| Hex entity | Ğ |
| CSS content | content: "\011E"; |
| JavaScript | "\u011E" |
| URL encoded | %C4%9E |
| UTF-8 bytes | C4 9E |
Type it directly with UTF-8
If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste Ğ straight into the HTML. Entities are only needed when your editor or database cannot store the character.
About the letter ğ
ğ is Unicode U+011F, named LATIN SMALL LETTER G WITH BREVE. It is used in Turkish. A small cup above a letter. Romanian uses ă, Turkish ğ, Vietnamese ă, and Esperanto ŭ. See the ğ character page for every code and shortcut.
Troubleshooting
- If you see à and other symbols, the file is UTF-8 but the browser reads it as Windows-1252. Add the meta charset tag.
- Named entities are case sensitive: É and é are different letters.
- In XML and XHTML only five named entities exist, so use numeric codes there.
Frequently asked questions
What is the shortcut for ğ on HTML?
ğ.
Can I just copy and paste ğ?
Yes. Click the copy button above, then paste with Ctrl+V on Windows and Chromebook, Cmd+V on a Mac, or touch and hold and choose Paste on a phone.
What is the Unicode code for ğ?
U+011F. In HTML it is ğ.
Related guides
- How to Type ğ (G with breve) on Windows
- How to Type ğ (G with breve) on Mac
- How to Type ğ (G with breve) on iPhone
- How to Type ğ (G with breve) on Android
- How to Type ğ (G with breve) on Microsoft Word
- How to Type ğ (G with breve) on Google Docs
- How to Type ė (E with dot above) on HTML
- How to Type ĝ (G with circumflex) on HTML
- How to Type ġ (G with dot above) on HTML
- How to Type ģ (G with cedilla) on HTML