Alt codes for G help users type the letter G and the gram unit symbol (g) using numeric keypad shortcuts on Windows. On a US QWERTY layout, press and hold Alt, then type 71 for uppercase G or 103 for lowercase g; on some UK layouts, you may need Alt+071 or Alt+0103 depending on active code page. These decimal codes require a dedicated numeric keypad, Num Lock enabled, and correct system language settings to work consistently across applications.
How Alt Codes Work for G
Alt codes are legacy keyboard input methods that send Unicode characters to Windows applications when you hold the Alt key and type a sequence on the numeric keypad. For the letter G, the most common decimal codes are 71 (uppercase) and 103 (lowercase). These values map to the Latin alphabet in widely used code pages such as CP437 and CP1252. While they function reliably in many desktop programs, web forms, and documents, results can vary on modern systems that prioritize direct Unicode input or on non-Windows platforms.
Key Definitions
- Alt code: A numeric sequence entered on the numeric keypad while holding Alt to produce a character.
- Decimal code: The base-10 number sequence used in Alt code input (e.g., 71 for G).
- Num Lock: A toggle that ensures the numeric keypad emits numeric input rather than navigation keys.
- Code page: A character encoding table that maps numeric sequences to specific characters.
Standard Alt Code for G on Windows
On a Windows PC with US QWERTY and a functioning numeric keypad, hold Alt and press 71 on the keypad for uppercase G; release Alt to insert the character. For lowercase g, use Alt+103. If your layout includes an underlined alternate glyph, try Alt+71 or Alt+103 with the leading zero (071 / 0103) depending on system configuration. When these do not respond, the issue is often Num Lock, driver settings, or application-level input handling rather than the code itself.
US QWERTY Alt Codes for G
| Character | Alt Code (Decimal) | Verified Detail | Source Type |
|---|---|---|---|
| G | 71 | Uppercase Latin capital letter G | System keymap (CP1252/CP437) |
| g | 103 | Lowercase Latin letter g | System keymap (CP1252/CP437) |
| g (unit) | 103 | Lowercase gram symbol when context expects units | General mapping; context dependent |
UK Layouts and Alternate Forms
On some UK keyboards, the keypad may follow a different scan code to ASCII mapping, which can change the effective code. Common practice is to prefix with a leading zero (e.g., Alt+071 for uppercase, Alt+0103 for lowercase) or to use the British pound currency codes where relevant. If letters do not appear when using Alt codes on UK Windows editions, verify the active input language and keyboard layout in system settings. In some configurations, Function layer keys or international keyboard variants remap the keypad, so results are not guaranteed to match US layouts.
UK and International Guidance
- Try Alt+071 (uppercase G) and Alt+0103 (lowercase g) when leading zero is required.
- Confirm active keyboard layout in Control Panel or Settings matches your physical keyboard.
- If codes produce currency symbols instead of G, your code page is likely different; switch layout or use Unicode input methods instead.
How to Enter Alt Codes Correctly
First ensure Num Lock is on; the numeric keypad must produce numbers, not arrow or edit keys. Hold the Alt key, type the sequence on the keypad (71 or 103), then release Alt. In most desktop applications the corresponding letter appears immediately. In web forms, behavior depends on browser and OS input handling; some modern interfaces may not support legacy Alt codes and will ignore the input. If nothing appears, check that the focus is inside an editable field and that no browser extension is intercepting the key sequence.
Step-by-Step for G and g
- Position cursor in a text editor or form field where characters are accepted.
- Turn on Num Lock; verify the keypad emits numbers.
- Hold Alt, type 71 for G or 103 for g on the numeric keypad.
- Release Alt; the character should appear.
Common Issues and Fixes
When Alt codes for G fail, typical causes include Num Lock being off, using the main row numbers instead of the keypad, incorrect keyboard or input language, or applications that filter low-level input. On laptops without separate numeric keypads, you may need to enable a Function layer (e.g., Fn+Numpad) or use on-screen keyboards that simulate numeric input. Driver issues can also break keypad behavior; updating HID or keyboard drivers often resolves unexplained failures.
Troubleshooting Checklist
- Num Lock is enabled and keypad produces numbers.
- Using the numeric keypad, not the numbers above letters.
- Keyboard layout matches the code expectations (US vs UK).
- Application accepts standard system input (test in Notepad first).
- No third-party input tools or filters are intercepting the keypress.
Modern Alternatives to Alt Codes
On Windows, you can type G directly from the keyboard without codes. On macOS, use Option+Shift+G for the gram symbol on some regional layouts; on Linux compose keys or Unicode sequences (e.g., Ctrl+Shift+U 0047 followed by Space) provide universal input. Unicode input methods (Windows: Win+.) for emoji and symbols, Character Map, or OS-specific pickers are more reliable on modern systems. Web developers can use HTML character references such as G for uppercase and g for lowercase, which work across browsers and avoid platform-specific input dependencies.
Quick Comparison of Input Methods
| Platform | Method | Key Sequence for G | Use Case |
|---|---|---|---|
| Windows | Alt code | Alt+71 (uppercase), Alt+103 (lowercase) | Legacy apps, environments without direct Unicode support |
| Windows | On-screen picker | Win+. then search G | Modern apps, no keypad required |
| macOS | Key combination | Option+Shift+G (varies by layout) | macOS with appropriate keyboard mapping |
| Linux/HTML | Unicode/HTML entity | Compose key + G or HTML: G | Web content, cross-platform consistency |
When to Use Alt Codes vs Other Methods
Use Alt codes only when you are working in environments that support them and you do not have easier input options; for most modern writing, on-screen pickers, OS keyboard shortcuts, or HTML entities are more robust. Alt codes are best suited for quick typed documents in legacy desktop applications, whereas developers and content creators should prefer HTML entities (G and g) for consistent rendering across browsers and devices. If you rely on alt codes for G, verify Num Lock, the correct numeric keypad, and that your layout matches the code; when in doubt, switch to a system picker or OS-level shortcut.