Setup & site building · Guide
How to Do Superscript in WordPress (Step by Step)

Short answer
In the WordPress block editor, select the text, click the down arrow in the block toolbar to open more formatting options, and choose Superscript. Click it again to remove it. In the classic editor or page builders, wrap the characters in sup tags, or paste a Unicode character such as the squared sign.
Key takeaways
- Superscript sits in the block toolbar's overflow menu, next to Subscript.
- There is no default keyboard shortcut for superscript in the block editor.
- The sup HTML tag works in the classic editor, Custom HTML and most builders.
- Unicode characters like the squared sign work in titles and SEO fields.
- A short CSS rule stops superscript from disturbing line spacing.
How do you do superscript in WordPress?
In the block editor, select the text you want raised, click the small down arrow in the block toolbar to open more formatting options, and choose Superscript.
The selected text moves up and shrinks, as in x² or 1st. Click Superscript again with the text selected to remove it.
The same menu also has Subscript for lowered text, such as the 2 in H₂O. The rest of this guide covers the classic editor, HTML, page builders and styling fixes.
Step 1: How do you find the Superscript option?
Highlight the text inside a Paragraph, Heading or List block, then click the down arrow at the right end of the formatting buttons in the block toolbar to reveal Superscript.
The visible toolbar shows the most used options, such as bold, italic and link. Less common ones, including Superscript, sit in this overflow menu.
Superscript works on any text inside a block, including links and bold text. You can combine it with other formatting, such as making a footnote marker bold and raised at the same time.
The steps are:
- Click into the block that contains the text.
- Select only the characters to raise, such as the 2 in m2.
- Click the down arrow in the toolbar.
- Choose Superscript.
If you do not see the toolbar, click the text again. The toolbar can also be pinned to the top of the editor from the Options menu with Top toolbar.
Step 2: How do you remove superscript?
Select the raised text and click Superscript again in the same menu, and it returns to normal size and position.
If only part of the text was raised by mistake, select just that part. The option works like a toggle on whatever you have selected.
You can also press Ctrl+Z or Cmd+Z straight after applying it. Our guide on how to undo in WordPress covers other ways to reverse changes.
Is there a keyboard shortcut for superscript?
The block editor does not include a default keyboard shortcut for superscript, so use the toolbar menu, type the HTML, or paste a ready-made Unicode superscript character.
You can see all the built-in shortcuts from the editor's Options menu under Keyboard shortcuts. Bold, italic and links have shortcuts, but superscript does not.
If you add superscripts often, try the Unicode approach below for common numbers such as ² and ³. Copy them once into a note and paste as needed.
Some writing tools and browser extensions can add your own shortcuts to web pages. That is an option if you raise text many times a day, but test it carefully in the editor first.
How do you add superscript with HTML?
Wrap the text in a sup element, such as x<sup>2</sup>, by switching the block to HTML editing or by using a Custom HTML block.
To edit a block as HTML:
- Select the block.
- Open its options menu with the three dots.
- Choose Edit as HTML.
- Add the sup tags and switch back to visual editing.
<p>The room is 20 m<sup>2</sup> and the price is the 1<sup>st</sup> offer.</p>
MDN's page on the sup element explains when to use it and when not to, such as for purely decorative styling.
Our guide on adding HTML in WordPress covers the Custom HTML block and other places you can add code.
How do you do superscript in the classic editor?
The classic editor has no superscript button by default, so type sup tags in the Text tab, or install a plugin such as Advanced Editor Tools that adds superscript and subscript buttons.
In the Text tab, select the characters and type the opening and closing sup tags around them. Then switch back to Visual to check the result.
Advanced Editor Tools, formerly TinyMCE Advanced, lets you drag extra buttons onto the classic toolbar, including superscript and subscript.
That plugin also adds options to the Classic block inside the block editor. Our guide on going back to the classic editor explains when the classic setup still makes sense.
Can you use Unicode superscript characters instead?
Yes. Characters such as ², ³, ¹ and the trademark sign ™ are real text symbols, so you can paste them anywhere, including titles, menus and SEO fields where formatting is not allowed.
This is the only option in places that strip HTML, such as post titles in some themes, browser tab titles and meta descriptions.
Unicode characters are also copied correctly into emails, social posts and documents, while sup formatting is often lost when text is pasted elsewhere.
Common characters:
| Character | Use | Example |
|---|---|---|
| ² | Squared, area | 50 m² |
| ³ | Cubed, volume | 2 m³ |
| ™ | Trademark | Brand™ |
| ® | Registered mark | Brand® |
| ⁿ | Mathematical power | xⁿ |
The Unicode Superscripts and Subscripts chart lists the full set. Not every letter has a superscript version, so for words such as th in 4th, use the editor's Superscript option.
On Windows, you can type ² with Alt+0178 and ³ with Alt+0179 using the number pad. On a Mac, open the Character Viewer and search for superscript.
How do you add footnotes with superscript numbers?
Use the Footnotes feature in the block editor: place your cursor, choose Footnote from the same formatting menu, and WordPress adds a numbered superscript link plus a footnotes list at the end of the post.
This is better than typing superscript numbers by hand. The numbers update automatically if you add or remove notes, and each one links to its note and back.
The Footnotes block documentation covers the feature, which arrived in WordPress 6.3.
Footnotes work in posts and pages. Some custom post types may not support them, depending on how they are registered.
How do you add superscript in Elementor and other builders?
In Elementor's Text Editor widget, switch to the Text tab and add sup tags around the characters, or paste a Unicode character, since the default toolbar does not include a superscript button.
Most page builders follow the same pattern. Their text widgets usually accept HTML even when the visual toolbar lacks the button.
Gutenberg-based builders and block plugins usually keep the core formatting menu, so the Superscript option appears in their text blocks as normal.
If a builder strips the sup tag on save, use a Unicode character for numbers or ask the builder support team whether HTML is filtered in that field.
Heading widgets in builders often accept simple HTML too. Test on the front end, as some builders strip tags in certain fields.
Why does superscript mess up your line spacing?
Superscript text can push its line further from the line above, because browsers raise it with vertical alignment, and a small CSS rule fixes the uneven gap.
Add this CSS under Appearance > Customize > Additional CSS, or in the Site Editor's custom CSS for block themes:
sup, sub {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup { top: -0.5em; }
sub { bottom: -0.25em; }
This keeps the raised or lowered text from affecting the line's height. Clear your cache after adding it.
If the spacing problem affects whole paragraphs, not just superscripts, see our guide on paragraph spacing not working in WordPress.
When should you use superscript, and when not?
Use superscript for exponents, ordinal numbers, footnote markers and trademark symbols, but not for making text smaller or decorative, since screen readers and search engines read it as normal text.
Some screen readers do not announce that text is raised. For maths such as 10⁶, consider writing 10 to the power of 6 nearby if the meaning matters.
For complex formulas, a maths plugin that supports LaTeX or MathML is a better fit than manual superscripts.
For changing text size in general, our guide on increasing font size in WordPress shows the right tools.
Can developers add a custom superscript button?
Yes. The block editor's Format API lets developers register custom formatting buttons, but superscript already exists in core, so this is only needed for special variations.
The Format API guide on developer.wordpress.org shows how to add a toolbar button that wraps selected text in a tag or class.
A custom format can help if you want a styled marker, such as a coloured footnote reference, with a single click.
Frequently asked questions
Where is superscript in the WordPress block editor?
Select the text, then click the small down arrow at the end of the formatting buttons in the block toolbar. Superscript appears in that menu along with Subscript, Highlight, Inline code and other less common options.
How do I add superscript to a WordPress title?
Most titles do not allow formatting, so paste a Unicode superscript character such as the squared or trademark sign instead. Some themes allow sup tags in titles, but they can show as raw code in browser tabs and search results.
Is there a shortcut for superscript in WordPress?
The block editor has no default shortcut for superscript. Use the toolbar's overflow menu, type sup tags in HTML mode, or paste Unicode characters. On Windows, Alt codes with the number pad can insert the squared and cubed signs.
How do I add superscript in the WordPress classic editor?
Switch to the Text tab and wrap the characters in opening and closing sup tags. If you use superscript often, install Advanced Editor Tools, which can add superscript and subscript buttons to the classic editor toolbar.
Why does superscript make my line spacing uneven?
Browsers raise superscript text in a way that can enlarge the line's height. Add CSS that sets line-height to zero and positions the text relatively, so it sits higher without pushing the lines apart.
Sources
- <sup>: The Superscript element MDN Web Docs
- Advanced Editor Tools WordPress.org Plugins
- Footnotes block WordPress.org Documentation
- Formatting Toolbar API WordPress Developer Resources
- Superscripts and Subscripts chart Unicode Consortium
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


