Superscript Generator - Convert text to Unicode superscripts
Superscript generator for plain text. Convert any string to Unicode superscript digits, the lowercase letter n, and operators, see live counts, and copy output.
Superscript Generator
Results
What Is Superscript Generator?
A superscript generator is a Unicode text tool that rewrites plain text into superscript form using the Superscripts and Subscripts block defined by the Unicode Consortium. It walks the input one character at a time, swaps in the matching superscript code point where one exists, and leaves the rest of the text unchanged. The output is a plain Unicode string you can paste into chat apps, slides, or notes without installing a font or writing HTML.
- • Writing math exponents in plain text: Render x2, y3, or 10^6 quickly so superscripts read clearly in titles, captions, and short messages.
- • Formatting footnote and reference markers: Convert plain digits into superscript digits for numbered footnotes, citation labels, and editorial notes in casual writing.
- • Adding superscript styling to social posts: Drop superscript Unicode into X, Instagram, or Discord bios so the styling shows up without HTML or rich-text markup.
- • Cleaning up chemistry ion notation in messages: Type (2+) or (3-) in plain text and let the calculator swap the digits and operators into proper superscript form for an ion-notation look.
The calculator uses the Unicode superscripts block, so the output is a real string of code points rather than styled HTML. It pastes into any modern chat app, code editor, or word processor that supports Unicode without extra markup.
When the same source text needs to render below the baseline instead of above it, the Subscript Generator covers the reciprocal Unicode block in the same one-pass workflow.
How Superscript Generator Works
The calculator looks each code point up in a fixed superscript map and rebuilds the output character by character. Anything outside the Superscripts and Subscripts block is copied through unchanged.
- inputText: The plain-text source string. The calculator reads up to 2,000 code points; longer input is truncated.
- SUPERSCRIPT_MAP: A lookup table that maps source characters to their Unicode superscript equivalents.
- superscriptText: The output string rebuilt character by character. Converted characters carry a superscript code point; the rest stay identical to the source.
- sourceChars: Total code points examined after truncation. Emoji and supplementary characters each count as one code point.
- convertedChars: Count of source characters that matched a superscript entry and were replaced.
- unchangedChars: Count of source characters copied through because no superscript code point exists.
The lookup table combines two Unicode blocks. The Superscripts and Subscripts block at U+2070 to U+209F holds superscript 0, superscript 4 through 9, the operators + - = ( ), and superscript Latin small letter n. The Latin-1 Supplement block holds superscript 1, 2, and 3 at U+00B9, U+00B2, and U+00B3, which is why those three digits are missing from the dedicated Superscripts chart. Any code point outside this combined range is copied through unchanged so the output stays valid Unicode.
Convert x2 to Unicode superscript exponent
inputText = 'x2'
x (no entry) -> 'x'; 2 -> U+00B2 = ². Output: 'x' + '²' = 'x²'.
Superscript text: x². Source: 2 characters. Converted: 1. Unchanged: 1.
The digit 2 swaps into U+00B2 while the letter x passes through, because the Superscripts and Subscripts block defines no superscript form for x.
Convert '2n + 3' with operators and the superscript n letter
inputText = '2n + 3'
2 -> U+00B2 = ²; n -> U+207F = ⁿ; space -> ' '; + -> U+207A = ⁺; space -> ' '; 3 -> U+00B3 = ³. Output: '²' + 'ⁿ' + ' ' + '⁺' + ' ' + '³' = '²ⁿ ⁺ ³'.
Superscript text: ²ⁿ ⁺ ³. Source: 6 characters. Converted: 4. Unchanged: 2.
Digit-to-superscript and letter-to-superscript substitutions share the same lookup table; spaces pass through unchanged.
According to Unicode Consortium Superscripts and Subscripts chart, the Superscripts and Subscripts block at U+2070 to U+209F assigns U+2070 to superscript 0, U+2074 through U+2079 to superscript 4 through 9, U+207A through U+207E to superscript + - = ( ), and U+207F to superscript Latin small letter n. Superscript 1, 2, and 3 fall outside this block
When you need the numeric code points for the same source text instead of the styled glyphs, ASCII converter maps each character to its decimal, hex, octal, or binary value.
Key Concepts Explained
Four small ideas explain what the calculator actually swaps and why most letters stay unchanged.
Unicode Superscripts and Subscripts Block
Unicode defines the Superscripts and Subscripts block at U+2070 to U+209F, which holds the canonical superscript code points (and subscript code points). The calculator's lookup table reads from this block, so any glyph it emits can be looked up directly in the Unicode charts.
Superscript Digits (U+2070, U+00B9-U+00B3, U+2074-U+2079)
All ten decimal digits 0 through 9 have superscript counterparts split across two blocks. U+00B9, U+00B2, and U+00B3 live in Latin-1 Supplement, while U+2070 and U+2074 through U+2079 live in Superscripts and Subscripts. The calculator always converts ASCII digits 0-9 because both sets cover the full digit set.
Superscript Latin Small Letter n (U+207F)
Only one lowercase letter, n, has a Unicode superscript form in this block. Every other lowercase letter and every uppercase letter has no canonical superscript, so the calculator copies them through unchanged. Use HTML <sup> tags or CSS vertical-align for letter-rich superscripts.
Superscript Operators and Parentheses (U+207A to U+207E)
The block also includes superscript + - = ( ) for inline math like ²ⁿ ⁺ ³ or ion notation such as (2+). Other punctuation (comma, period, question mark) has no superscript form, so the calculator copies those characters through unchanged.
Together these four ideas explain the whole behavior: digits, the lowercase letter n, and the operator set convert; everything else passes through. For uppercase or non-n lowercase superscripts, HTML <sup> tags usually beat a Unicode-only generator.
When you need to look up the broader Unicode properties of each character in the input rather than just rewrite digits and the letter n, Unicode text calculator returns the code points, names, and categories for any string.
How to Use This Calculator
Five quick steps get from a plain string to copy-ready superscript Unicode.
- 1 Paste or type your text: Drop the source string into the Text to convert field. The calculator accepts up to 2,000 code points per pass, which covers most paragraphs and short formulas.
- 2 Read the live output: The Superscript Output panel updates as you type. Digits become superscript digits, the letter n becomes the superscript n, and operators like + and - become superscript operators.
- 3 Check the character counts: The right-hand panel shows how many source characters were processed, how many were converted, and how many passed through unchanged, so you can see at a glance if any letter did not get swapped.
- 4 Adjust and re-run: If a character did not convert and you need it in superscript form, wrap the run in HTML <sup> tags in the destination app, or use a CSS vertical-align rule for letter-rich superscripts.
- 5 Copy the output: Highlight the Superscript Output text and copy it like any other string. The output is plain Unicode, so it pastes into chat apps, word processors, and code editors without special handling.
Pasting '(2+)' returns '⁽²⁺⁾' with source 4, converted 4, and unchanged 0, matching the parenthesis, the digit 2, the plus sign, and the closing parenthesis.
Before converting, you may want to clean the casing of the source string, and Sentence case converter rewrites any draft into proper sentence case in the same one-pass workflow.
Benefits of Using This Calculator
A purpose-built superscript generator removes the need to memorize Unicode code points or hand-code <sup> tags.
- • No font or markup required: Output is real Unicode, so it shows up correctly in chat apps, slide decks, and word processors that render Unicode without installing a superscript font or wrapping text in <sup> tags.
- • Full digit support in one pass: The calculator maps all ten decimal digits 0-9 to their superscript counterparts at once, so exponents like x2 and y3 and large numbers like 10^6 rewrite cleanly.
- • Honest pass-through for unsupported characters: When the input contains an uppercase letter or punctuation with no superscript form, the calculator copies it through instead of dropping it, so the surrounding text stays readable and the output remains a valid Unicode string.
- • Live counts show coverage at a glance: The converted and unchanged counters tell you exactly how much of the input was rewritten, which makes a missing superscript character visible before pasting the result.
- • Works in plain-text contexts: Output is a single Unicode string with no HTML or CSS, so it pastes into Markdown previews, terminal logs, and short-message fields where rich-text markup would be stripped.
The same Unicode block the calculator reads is what most modern apps already render, so the result looks consistent across iOS, Android, and desktop without per-app tweaking.
For other Unicode-style text treatments that work in plain-text contexts the same way superscript output does, Mirror Text Converter flips individual characters into mirror glyphs on the same one-pass input.
Factors That Affect Your Results
Three factors determine how much of your text gets rewritten, and three limitations explain when to reach for a different tool.
Character set of the input
ASCII digits 0-9, the lowercase letter n, and the operators + - = ( ) convert. Every other character passes through unchanged, which keeps the output safe but also limits how much of the text can be rewritten at once.
Case of letters
Only lowercase n rewrites; uppercase letters and every other lowercase letter do not because the Unicode superscripts block defines no other letter superscripts. Use HTML <sup> tags or a CSS vertical-align rule for letter-rich superscripts.
Mix of superscript and non-superscript characters
When the input mixes digits, the letter n, and other letters, the converted count drops but the output stays readable. Use the counts panel to decide whether the result is acceptable, or wrap unchanged letters in <sup> tags.
- • The Unicode superscripts block defines no uppercase superscript letters and only one lowercase superscript letter (n at U+207F). Wrap text in HTML <sup> tags for letter-rich superscripts.
- • Most punctuation marks (period, comma, colon, semicolon, question mark, exclamation mark) have no superscript form and pass through unchanged; only + - = ( ) convert.
- • Accented letters, emoji, CJK characters, and other non-ASCII code points are outside the Superscripts block and pass through unchanged; the calculator targets ASCII plus lowercase n.
These limits come straight from the Unicode 15.0 specification, not from the calculator, so they hold for any Unicode superscript workflow. For a different text effect on the same source string, a strikethrough overlay or an underline toggle on the surrounding line often works better than forcing a letter through the superscript block.
According to Unicode Consortium Latin-1 Supplement chart, superscript 1, 2, and 3 sit at U+00B9, U+00B2, and U+00B3 in the Latin-1 Supplement block, where they were assigned before the dedicated Superscripts and Subscripts block existed. That earlier assignment is why those three digits are not in the Superscripts chart PDF
According to Unicode 15.0 core specification, the Superscripts and Subscripts block was introduced in Unicode 1.1 and assigns superscript code points to seven of the ten decimal digits (0 and 4 through 9), the lowercase letter n, and the small set of superscript operators and parentheses. The Unicode standard covers all ten superscript digits once the earlier Latin-1 Supplement assignments are added
When the superscript pass leaves too many letters unchanged because the Unicode block is letter-poor, Strikethrough Text Calculator applies a Unicode overlay stroke to the same source string for a different text effect.
Frequently Asked Questions
Q: What does the superscript generator do?
A: It rewrites plain text using the Unicode Superscripts and Subscripts block. Each digit, the lowercase letter n, and a small set of operators becomes its superscript code point, while every other character passes through unchanged.
Q: Which characters have a Unicode superscript form?
A: All ten decimal digits 0-9, the lowercase letter n, and the operators + - = ( ) have Unicode superscript code points. Superscript 1, 2, and 3 sit at U+00B9, U+00B2, and U+00B3 in Latin-1 Supplement, while superscript 0 and 4-9 sit in Superscripts and Subscripts. Uppercase Latin letters and other lowercase letters pass through unchanged.
Q: How do I type a superscript character without a generator?
A: On Windows hold Alt and type 0185 for superscript 1, 0178 for superscript 2, or 0179 for superscript 3. On macOS open the Emoji and Symbols viewer and search 'superscript'. A generator like this one is faster for full strings.
Q: Does the superscript generator convert regular letters?
A: Only the lowercase letter n. The Unicode superscripts block defines no uppercase superscript letters and no superscripts for letters other than n, so A, B, e, o, x and the other letters pass through unchanged. Use HTML <sup> tags if you need other letters as superscripts.
Q: Will the superscript generator work in chat apps and social media?
A: Yes. The output is plain Unicode, which modern chat apps like Discord, iMessage, WhatsApp, and most social platforms render directly without any markup or font installation on iOS, Android, and desktop.
Q: How long can the input text be?
A: Up to 2,000 code points per pass, which covers most paragraphs and short formulas. Inputs longer than that are truncated before processing, and the source character count reflects the truncated length rather than the original.