Skip to content

Superscript Generator

Turn digits and letters into Unicode superscript characters. Characters without a superscript form stay as they are.

Result

Enter text

How to Use

  1. 1 Paste the text.
  2. 2 Choose Convert.
  3. 3 Copy the superscript text. Letters become the lowercase superscript form.

Example Output

  • 42 becomes ⁴².
  • H2O becomes ʰ²ᵒ.

About This Tool

The generator uses the superscript characters in Unicode. It does not change font size, and it has no superscript for q or for most punctuation.

Using the Superscript Generator

This generator replaces characters that have a superscript form in Unicode with that form. Digits become superscript digits, so 42 becomes ⁴². Letters become the modifier superscript letters, which are a lowercase set, so H2O becomes ʰ²ᵒ. Spaces stay spaces. A character with no superscript form on this page, including q and most punctuation, stays as itself and is counted as unchanged.

The result is ordinary text. It is not a font size, a word-processor style, or an image. You can paste it where Unicode text is accepted. A program that only understands a small character set may show a box or drop the character. That limit belongs to the program, not to a hidden style on this page.

Which Characters Convert

The digits 0 through 9 convert to ⁰¹²³⁴⁵⁶⁷⁸⁹. The letters a through z convert except q, which has no superscript form in the set this page uses. The converted letters are the modifier letters, so an uppercase H and a lowercase h both become ʰ. Plus, minus, equals, and the parentheses convert. Everything else is copied, and if it is not a space or a line break it adds to the unchanged count.

The headline is the number of characters that converted. A box that converts nothing, such as a row of question marks, is rejected. The page will not pretend a string of unsupported characters is a superscript. A mix, such as “A+”, converts the A and the plus and leaves nothing else if those are the only characters.

Spaces are kept so words stay words. “x2” becomes “ˣ²” with no space added and none removed. If you wanted a space, type the space. The generator does not invent spacing around an exponent.

How a String Is Walked

The text is read one character at a time, including letters, digits, and marks. Each character is matched against the superscript table without regard to the case you typed. A match is written as the superscript. A miss is written as the original character. The converted count and the unchanged count are the two lines under the result.

An alphabet fold is a different table. The Atbash Cipher Decoder swaps A with Z and leaves digits alone. It will not turn 2 into ². Use it when the job is a cipher. Use this page when the job is a superscript character.

The copy button copies the converted string. It does not copy the unchanged count. If a destination rejects a modifier letter, you will see that in the destination, not in a warning here. The page’s job ends when the characters are produced.

Examples You Can Compare Character by Character

“42” becomes “⁴²”. Both characters convert, so the headline is 2 superscripts and the unchanged count is 0. “H2O” becomes “ʰ²ᵒ”. Three characters convert. “q” alone is rejected, because q is the letter this table does not convert and a one-letter q converts nothing. “q2” becomes “q²”, with one superscript and one character left unchanged.

“(n+1)” becomes “⁽n⁺¹⁾” only for the marks and the digit. The n converts as well, to ⁿ, so the whole string is “⁽ⁿ⁺¹⁾”. Check the parentheses, the plus, and the 1 before you trust a longer formula. Those four forms are the ones people mis-copy by hand.

A blank box is rejected. A box of spaces is rejected, because spaces are kept but they are not superscripts, and a conversion of zero is not a result. Type at least one digit or supported letter.

Formulas, Notes, and Labels

A squared variable is the usual reason to convert. Type x2 if you want ˣ². Type the letters and digits in the order you want them to appear. The page does not know that the 2 is an exponent. It only knows that 2 has a superscript form and x has one. If the 2 should stay on the line and the x should rise, you typed the wrong job. This page raises every supported character.

Line breaks in the paste stay line breaks. If you wanted one line, remove the breaks first or after. The Remove Line Breaks tool joins lines with a space or removes the breaks. It does not produce superscripts. Flatten the note, then convert, if the destination is a single line.

Labels that must stay plain, such as a file name, are a poor place for modifier letters. Some file systems and some forms reject them. Convert the visible label if you need it, and keep the stored name in ordinary characters.

The Unchanged Count

The unchanged count is the number of characters that are not spaces, line breaks, or tabs and that are not in the table. It is there so a long paste does not hide a q, a comma, or a question mark. A count of zero means every visible mark converted or was whitespace. A count above zero means something stayed on the baseline. Look at the result, not only the headline, when the count is above zero.

Q is the letter to remember. A word with a q will show that q in the middle of superscript letters. Rewrite the word or accept the mixed line. The page will not draw a fake superscript q.

Digits always convert. If a number must stay on the baseline next to a superscript unit, do not include that number in the paste. Convert only the part that should rise, then place it beside the plain number yourself.

Mistakes with Superscript Text

Choosing a smaller font in an editor is not the same result. A smaller 2 is still the character “2”. A superscript 2 is the character “²”. Searching for the digit 2 will not find ². Say which one you needed before you convert a whole paragraph.

Pasting the result into a box that strips non-ASCII characters will drop the superscripts or replace them. If the destination is that kind of box, the conversion will not survive. Keep the ordinary spelling for that destination.

A paragraph count will not tell you whether the superscripts converted. The Paragraph Counter splits on blank lines. Superscript characters are still characters inside a paragraph. Count paragraphs only when the question is the blank-line structure.

Longer Pastes

A sentence converts one character at a time, so a paragraph of mixed prose becomes a paragraph of superscript letters with the unsupported marks left behind. That is rarely what a sentence needs. Convert the exponent, the footnote marker, or the short label, and leave the sentence in ordinary type.

The unchanged count grows with every comma and period. A long prose paste will report a large unchanged count. That is accurate and usually a sign that the paste was larger than the job. Select the part that should rise.

Repeated runs are stable. The same input produces the same output. There is no seed and no random choice. If two runs differ, the input differed, including a trailing space you did not notice. Spaces do not convert, but they are part of the string.

Where the Characters Help

Footnote markers, exponents, and short chemical fragments are the practical uses. “H2O” as ʰ²ᵒ is a character substitution, not a typeset formula with a baseline O. If you need a proper formula layout, use a tool that understands formula structure. This page is the character substitution.

A sentence-length check belongs elsewhere. The Sentence Counter counts sentences. It does not convert digits. Finish the wording, then convert only the token that should be a superscript.

Copy the result into the destination immediately and look at it there. Modifier letters are easy to misread at a glance because several of them look like small capitals or punctuation. The worked examples, ⁴² and ʰ²ᵒ, are the visual check.

What This Page Will Not Typeset

It will not stack a fraction, draw a radical, or place a limit under a sum. Those need a layout, not a single character. It will not italicize, bold, or change color. It will not convert emoji or most symbols.

It will not guess that a caret means an exponent. “x^2” converts the x and the 2 and leaves the caret, because the caret is not in the table. Type x2 if you want ˣ². Delete the caret yourself if you had used it as a stand-in.

The page does not keep a history. Copy the result if you need it after a refresh.

Characters Worth Memorizing

The ten digits are the set to memorize, because they appear in every exponent and every footnote. ⁰¹²³⁴⁵⁶⁷⁸⁹ should look familiar before you convert a long expression. If a digit in a result does not match that row, the paste was not produced by this table. Compare one digit at a time rather than glancing at the whole token.

The parentheses and the plus and minus signs are the next set. A formula that uses them, such as a short binomial, should convert the marks and the letters together. Read the converted parentheses first. If they did not rise, you typed a different bracket. Square brackets are not in the table and will stay on the baseline, which is correct and easy to mistake for a failure.

A Short Conversion Log

Keep a three-column note for any superscript you publish: the ordinary spelling, the converted spelling, and where it went. “x2, ˣ², figure caption” is enough to repair the caption if a later edit flattens the character back to a digit. Without the ordinary spelling you will be guessing whether the speck was a 2 or a 3.

Checking a Conversion

Convert 42 and confirm ⁴². Convert H2O and confirm ʰ²ᵒ. Convert q2 and confirm the q remains while the 2 rises. Convert a question mark alone and confirm the page rejects it. Those four checks cover digits, letters, the missing q, and a total failure.

A keyword tally is not a conversion check. The Keyword Counter counts a word you name. It will not tell you whether ² is the superscript digit. Use the four examples on this page for that.

Frequently Asked Questions

What does 42 become?

⁴². Both digits have superscript forms, so the headline is 2 superscripts.

What does H2O become?

ʰ²ᵒ. The letters use the lowercase superscript forms, and the 2 uses the superscript digit.

Why does q stay a normal q?

This page has no superscript form for q. The q is counted as unchanged, and the other supported characters still convert.

Do uppercase letters stay uppercase?

No. The superscript letters in this table are the lowercase modifier letters. H and h both become ʰ.

Are spaces removed?

No. Spaces stay spaces so words do not run together. A paste that is only spaces is rejected because nothing converts.

What does the unchanged count mean?

It counts characters other than spaces and line breaks that are not in the superscript table, such as q, commas, and question marks.

Is a superscript the same as a smaller font?

No. A smaller 2 is still the character 2. A superscript 2 is a different character, ².

Will x^2 become a superscript?

The x and the 2 will. The caret stays, because it has no superscript form here. Type x2 if you do not want the caret.

Can I convert a whole paragraph?

Yes, but every supported character will rise, including ordinary words. Convert the short part that should be a superscript.

Does the page store the text?

No. Copy the result if you need it after you leave or refresh.

What does the copy button copy?

The converted string. It does not copy the converted count or the unchanged count.

Why was a row of question marks rejected?

None of those characters convert. The page refuses a result that would be identical and unsupported, instead of calling it a superscript.