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.

Unicode textPaste anywhere: chats, social posts, bios, spreadsheets, file names.
E = mc² and the 21ˢᵗ century
HTML tagsGitHub and GitLab Markdown, most Markdown editors, any web page.
E = mc<sup>2</sup> and the 21<sup>st</sup> century
Pandoc MarkdownPandoc, R Markdown, Quarto, and Typora with the option turned on.
E = mc^2^ and the 21^st^ century
LaTeX mathGitHub math, Obsidian, Jupyter, Notion equations, anything with MathJax or KaTeX.
$\text{E = mc}^{2}\text{ and the 21}^{st}\text{ century}$
Every superscript character in Unicode (59), click to copy

Which output should you copy?

You are writing inCopyLooks like
A chat, social post, bio, spreadsheet cell, file nameUnicode textx²
GitHub or GitLab (README, issues, comments)HTML tags: x<sup>2</sup>x2
Pandoc, R Markdown, QuartoPandoc Markdown: x^2^x2
Typorax^2^ after turning on superscript in Preferences, Markdown tabx2
Math in GitHub, GitLab, Obsidian, Jupyter, NotionLaTeX: $x^{2}$rendered as math
Word, Google DocsNothing: 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:

CharactersSuperscriptNotes
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

AppSuperscriptSubscript
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