Typing a squared symbol is one of those digital tasks that seems simple until you actually need to do it. Whether you are writing a mathematical equation, specifying dimensions for a room, or documenting units of measurement, the need to create "x²" arises frequently. Fortunately, generating this character is straightforward once you understand the specific method required by your device or software.

Using Keyboard Shortcuts on Windows

The most common method for Windows users involves holding the Alt key while entering a specific code. This technique bypasses the need for finding obscure menus and allows for quick insertion directly into any text field.
- Press and hold the Alt key on your keyboard.
- While holding Alt, type 0178 on the numeric keypad.
- Release the Alt key, and the squared symbol (²) should appear.

Note that this requires the numeric keypad, not the numbers above the letters. If this does not work, ensure your Num Lock is enabled or try the alternative code 253 held with the Alt key.
Utilizing Keyboard Shortcuts on Mac

MacOS offers a more intuitive approach for this specific symbol, integrating it directly into common keyboard layouts. Users do not need to memorize numeric codes to access this character.
- Position your cursor where the symbol is needed.
- Press Shift + 2 on your keyboard.
This key combination produces the superscript "²" directly. If for some reason this shortcut does not function, you can also access the character by opening the Edit menu and selecting Emoji & Symbols, then searching for "superscript 2".

Inserting via HTML and Web Editors
For developers or those formatting text for web pages, HTML provides a semantic way to represent squared text. This ensures the symbol renders correctly across different browsers and devices.
| HTML Entity | Result |
| ² | ² |
| ² | ² |

When writing in platforms that support Markdown, you can often achieve the same visual result using backticks and the standard caret symbol, depending on the parser being used.
Typing on Mobile Devices



















Smartphone and tablet users have a dedicated system for accessing special characters, making it easy to insert mathematical symbols without switching between apps.
- Open your desired text field.
- Tap the 123 or += button to switch to the numeric layout.
- Long-press the 2 button.
- A popup menu will appear; lift your finger to select the squared symbol (²).
This method works universally across iOS and Android, though the exact touch interaction (tap vs. long-press) might vary slightly depending on the keyboard brand.
Utilizing Word Processors and Desktop Software
Applications like Microsoft Word or Google Docs include built-in tools for creating professional-looking text, including proper superscript formatting. This is the preferred method when the output needs to look polished.
- Type the number "2" immediately after the character or text.
- Highlight the "2" you just typed.
- Press Ctrl + Shift + + (Windows) or Cmd + Shift + + (Mac) to change it to superscript.
Alternatively, you can navigate to the "Insert" tab in the toolbar, select "Superscript" from the options, and then type the number "2" within the formatted text.
Copy and Paste for Quick Results
When other methods feel cumbersome, the simplest solution is often the most effective. You can bypass formatting and software limitations entirely by copying the symbol directly from a reliable source.
²
Simply highlight the symbol above, right-click, and select copy. You can then paste it wherever you need it. This serves as a universal fallback for any platform or application that does not support the specific keyboard shortcuts.