Superscript N (ⁿ)

The superscript n ⁿ is Unicode U+207F, the raised letter n for “to the nth power”. Press Copy to put it on your clipboard, or type it with Alt + 252 on Windows.

Unicode
U+207F
HTML
ⁿ
Windows
Alt + 252

How to type the superscript n (ⁿ)

The quickest way is to press Copy above and paste. To type ⁿ yourself, use the method for your device below.

Windows

  1. Hold Alt and type 252 on the numeric keypad. This older code (from code page 437) works in Notepad, Word and most desktop apps.
  2. In Word or Outlook, type 207F and press Alt + X. Alt + X converts the hex code before the cursor into the character, and back again.
  3. Press Win + R, type charmap and press Enter. Tick “Advanced view”, search for Superscript Latin Small Letter N, then Select and Copy. Character Map is built into every version of Windows.

Mac

  1. Press Control + Command + Space to open the Character Viewer, search for superscript latin small letter n and double-click it.
  2. With the Unicode Hex Input keyboard enabled (System Settings → Keyboard → Input Sources), hold Option and type 207F.

Linux & ChromeOS

  1. Press Ctrl + Shift + U, type 207f, then press Enter or Space. Works in GTK and IBus apps (GNOME, Firefox, Chrome, LibreOffice) and on ChromeOS.

iPhone & iPad

  1. Copy ⁿ from this page, then go to Settings → General → Keyboard → Text Replacement and add it with a shortcut such as ;supe. The shortcut then turns into the symbol as you type, in every app.

Android

  1. Copy ⁿ here, then open Gboard settings → Dictionary → Personal dictionary and add it with a shortcut.

Microsoft Word

  1. Type 207F, then press Alt + X.
  2. Insert → Symbol → More Symbols. Set “from” to Unicode (hex), type 207F in “Character code” and click Insert.

Google Docs

  1. Insert → Special characters, then search for “superscript latin small letter n” or draw it in the box.

Excel & Google Sheets

  1. Enter =UNICHAR(8319) in a cell. It works in Excel 2013 and later and in Google Sheets.

HTML

  1. Write ⁿ or ⁿ in your HTML.

What does ⁿ mean?

ⁿ writes “to the power of n” in plain text: xⁿ, 2ⁿ, aⁿ + bⁿ = cⁿ (Fermat’s Last Theorem). It is one of the few superscript letters that was already in the original IBM PC character set, which is why it still has a short Windows Alt code. It is also used in ordinal abbreviations in some languages and in phonetics for nasal release.

Common uses

  • Powers with a variable exponent: xⁿ
  • Growth notation in plain text: 2ⁿ possibilities

Superscript N codes for HTML, CSS and programming

Every code below produces ⁿ. Use the HTML entity in web pages, the CSS escape in content, and the escape sequence in source code.

Codes for ⁿ
Unicode code pointU+207F
HTML decimalⁿ
HTML hexⁿ
CSS contentcontent: "\207F";
JavaScript"\u207F"
Python"\u207F"
Python (by name)"\N{SUPERSCRIPT LATIN SMALL LETTER N}"
Java / C#"\u207F"
UTF-8 bytesE2 81 BF
UTF-16207F
URL encoded%E2%81%BF
Alt code (CP437)Alt + 252

ⁿ vs look-alike characters

These characters look similar to ⁿ but have a different meaning and code. Pasting the wrong one can break search, sorting and screen readers.

CharNameWhen to use it
N
U+006E
The ordinary letter, raised with formatting in documents.
Modifier Letter Small Capital N
U+1DB0
Modifier letter small n with left hook, a phonetic symbol.

Symbols similar to ⁿ

Click to copy, or open a symbol for its codes. See the full superscript and subscript collection.

  • Superscript Two Details
  • Superscript Three Details
  • Superscript One Details
  • Subscript Two Details

ⁿ character properties

Official Unicode name
SUPERSCRIPT LATIN SMALL LETTER N
Also known as
superscript letter n, to the power of n, nth power
Code point
U+207F
Unicode block
Superscripts and Subscripts (U+2070–U+209F)
General category
Modifier letter (Lm)
Added in
Unicode 1.1 (1993)
Plane
Basic Multilingual Plane (0)
Emoji
No, it is a text symbol

Frequently asked questions

Are there superscript versions of every letter?

Almost. Unicode has raised forms for most lowercase letters (ᵃ ᵇ ᶜ ᵈ ᵉ…), but not for q, and several capitals are missing. For full words, use superscript formatting in your editor.

What is the alt code for the superscript n?

On Windows, hold Alt and type 252 on the numeric keypad to get ⁿ. On a laptop without a keypad, copy it from this page or use 207F then Alt + X in Word.

How do I type the superscript n on a Mac?

There is no single Option shortcut for ⁿ on the US layout. Press Control + Command + Space to open the Character Viewer, search for “superscript latin small letter n” and double-click it, or copy it from this page.

What is the HTML code for the superscript n?

ⁿ has no named HTML entity. Use the numeric reference ⁿ or ⁿ, or paste the character directly into a UTF-8 page.

What is the Unicode for the superscript n?

ⁿ is U+207F, officially named SUPERSCRIPT LATIN SMALL LETTER N, in the Superscripts and Subscripts block. It has been part of Unicode since version 1.1 (1993).