Superscript Generator
Type x^2, E = mc^2 or 1^{st} and copy the result as superscript text you can paste anywhere (x², E = mc², 1ˢᵗ), or as the HTML, Markdown or LaTeX that renders a real superscript.
Every superscript character in Unicode (59), click to copy
Which output should you copy?
| You are writing in | Copy | Looks like |
|---|---|---|
| A chat, social post, bio, spreadsheet cell, file name | Unicode text | x² |
| GitHub or GitLab (README, issues, comments) | HTML tags: x<sup>2</sup> | x2 |
| Pandoc, R Markdown, Quarto | Pandoc Markdown: x^2^ | x2 |
| Typora | x^2^ after turning on superscript in Preferences, Markdown tab | x2 |
| Math in GitHub, GitLab, Obsidian, Jupyter, Notion | LaTeX: $x^{2}$ | rendered as math |
| Word, Google Docs | Nothing: use the shortcut (below) | x2 |
Plain Markdown (CommonMark) has no superscript syntax at all. HTML tags work wherever the Markdown renderer allows raw HTML, which GitHub and GitLab do. GitLab's documentation says to use the HTML tags and that it does not support the x^2 shorthand. The full comparison is in subscript and superscript in Markdown.
What Unicode has, and what it does not
Unicode superscript characters are a fixed set, not a style that applies to any letter. The set covers:
| Characters | Superscript | Notes |
|---|---|---|
| Digits | ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ | ¹ ² ³ come from Latin-1 (U+00B9, U+00B2, U+00B3), the rest from U+2070 to U+2079. Some fonts draw them at slightly different heights. |
| Math signs | ⁺ ⁻ ⁼ ⁽ ⁾ | Enough for exponents like 10⁻³ and charges like Fe³⁺. |
| Lowercase | ᵃ ᵇ ᶜ ᵈ ᵉ ᶠ ᵍ ʰ ⁱ ʲ ᵏ ˡ ᵐ ⁿ ᵒ ᵖ ʳ ˢ ᵗ ᵘ ᵛ ʷ ˣ ʸ ᶻ | Every letter except q. They come from phonetic alphabets, so sizes vary between fonts. |
| Capitals | ᴬ ᴮ ᴰ ᴱ ᴳ ᴴ ᴵ ᴶ ᴷ ᴸ ᴹ ᴺ ᴼ ᴾ ᴿ ᵀ ᵁ ⱽ ᵂ | No C, F, Q, S, X, Y or Z. The generator uses the lowercase form for those and tells you. |
That makes Unicode superscript good for exponents, ordinals (1ˢᵗ, 2ⁿᵈ), trademark-style marks and footnote numbers, and poor for whole sentences. For real documents, use the HTML, Markdown or LaTeX version.
Keyboard shortcuts in word processors
| App | Superscript | Subscript |
|---|---|---|
| Microsoft Word (Windows) | Ctrl + Shift + Plus (+) | Ctrl + Shift + Minus (-) |
| Google Docs (Windows, ChromeOS) | Ctrl + . | Ctrl + , |
| Google Docs (Mac) | ⌘ + . | ⌘ + , |
Sources: Microsoft Support "Format text as superscript or subscript in Word" and Google Docs Editors Help "Keyboard shortcuts for Google Docs". In Word, Ctrl + Spacebar removes the formatting again.
Questions
How do I type the squared symbol ²?
Type ^2 in the box and copy the Unicode output, or click ² in the character list above. On Windows with a numeric keypad, Alt + 0178 also types it.
Why is my superscript q not working?
Unicode has no superscript q, so no generator can make one that is a real superscript character. Use HTML <sup>q</sup> or a word processor.
Do superscript characters work in Excel and Google Sheets?
Yes. They are ordinary characters, so a cell can hold m² or 10⁶. They are text, though, so a formula will not treat ² as "squared".
Can I write a footnote marker?
For Markdown documents, use real footnotes with [^1]; the footnote tool builds them. Unicode ¹ ² ³ are fine for plain text.
How all of the copy and paste text styles work, and what they cost in length, search and accessibility: text styles explained.
Related tools
- Subscript Generator: H₂O, x₁ and chemical formulas.
- Small Text Generator: small caps, superscript and subscript words.
- Markdown Math Editor: write and preview LaTeX math for Markdown.
- Markdown Footnote Generator.