How to Type a Subscript on a Keyboard

Disclosure: When you buy something through links on our site, we may earn an affiliate commission.

Depends on where you’re typing — here’s every method for every context


Subscript text — characters positioned below the normal text baseline, like the 2 in H₂O or the n in xₙ — doesn’t have a dedicated key on any keyboard.

How you produce it depends entirely on where you’re typing.

A word processor handles it differently from a chat app, which handles it differently from a website or a code editor. Here’s every method organized by where you need the subscript.


The Two Types of Subscript

Formatted subscript — text that’s rendered below the baseline using the application’s own formatting system. This is what you use in Word, Google Docs, and similar tools. It requires the application to support text formatting.

Unicode subscript characters — actual Unicode characters that look like subscript numbers and letters. These work anywhere text is displayed regardless of whether the application supports formatting. The tradeoff is that only a limited set of characters are available as true Unicode subscripts.

Understanding which type you need determines which method applies.


Microsoft Word

Method 1: Keyboard Shortcut (Fastest)

Select the text you want to subscript, then press Ctrl + = (Ctrl and the equals sign). The selected text drops below the baseline. Press Ctrl + = again to toggle it back to normal.

To type in subscript mode without selecting first, press Ctrl + = before typing, enter your subscript characters, then press Ctrl + = again to return to normal text.

This is the method to remember for Word. It works in all modern versions and is faster than any menu approach.

Method 2: Home Tab Ribbon

Go to Home → Font group and click the x₂ subscript button (the x with a small 2 below it). This toggles subscript mode on and off the same way the keyboard shortcut does.

Method 3: Format Font Dialog

Press Ctrl + D to open the Font dialog. Check the Subscript checkbox and click OK. Less efficient than the shortcut but useful if you’re adjusting other font properties at the same time.


Google Docs

Method 1: Keyboard Shortcut

Press Ctrl + , (Ctrl and the comma key) to toggle subscript mode on and off.

Select existing text first to convert it, or activate the mode before typing to enter subscript characters directly. Press Ctrl + , again to return to normal text.

Method 2: Format Menu

Go to Format → Text → Subscript. Same toggle behavior as the keyboard shortcut.


Microsoft PowerPoint and Excel

PowerPoint uses the same shortcut as Word — Ctrl + = toggles subscript on and off in text boxes and slide content.

Excel handles subscript differently because Excel cells don’t support inline mixed formatting through a simple shortcut. To subscript specific characters in an Excel cell:

Double-click the cell to enter edit mode. Select the specific characters you want to subscript. Press Ctrl + 1 to open the Format Cells dialog. Go to the Font tab and check Subscript. Click OK.

This applies subscript to just the selected characters within the cell, which is what you need for chemical formulas and similar notation in spreadsheet labels.


HTML and Web Development

In HTML, subscript is created with the <sub> tag:

html

H<sub>2</sub>O
CO<sub>2</sub>
x<sub>n</sub>

This renders the enclosed text as subscript in every browser without any CSS needed. The <sub> element is semantic — it tells the browser and screen readers that this text is a subscript for typographic and semantic reasons, not just visual positioning.

For CSS-based subscript without the semantic tag, use:

css

.subscript {
  vertical-align: sub;
  font-size: smaller;
}

Or more precisely:

css

.subscript {
  vertical-align: -0.25em;
  font-size: 0.75em;
}

Markdown

Standard Markdown doesn’t support subscript natively — the original Markdown specification has no subscript syntax and plain Markdown processors don’t render it.

However several extended Markdown flavors do support it:

Pandoc and some static site generators use tilde syntax: H~2~O renders H₂O as subscript.

Some wiki and documentation platforms use the same tilde syntax or double-tilde: H~~2~~O.

GitHub Flavored Markdown doesn’t support subscript natively — use HTML <sub> tags instead, which GitHub renders correctly in Markdown files.

If you’re unsure whether your Markdown renderer supports subscript syntax, test with the tilde notation first and fall back to HTML <sub> tags if it doesn’t work.


LaTeX

LaTeX uses the underscore character for subscript:

latex

H_2O
x_n
x_{n+1}

Single characters after the underscore are subscripted directly. Multiple characters need curly braces — x_{n+1} subscripts the entire expression n+1 while x_n+1 only subscripts the n.

This applies in math mode — wrap expressions in $...$ for inline math or $$...$$ for display math:

latex

The formula for water is $H_2O$.

Unicode Subscript Characters

For contexts where formatting isn’t available — chat apps, plain text files, social media, code comments — Unicode provides a set of subscript characters that display as subscript in any font that supports them.

Subscript digits:

NormalSubscriptUnicode
0U+2080
1U+2081
2U+2082
3U+2083
4U+2084
5U+2085
6U+2086
7U+2087
8U+2088
9U+2089

Subscript letters (limited set):

NormalSubscriptUnicode
aU+2090
eU+2091
iU+1D62
nU+2099
oU+2092
xU+2093

Note that not all letters have Unicode subscript equivalents — only a subset are encoded. For full subscript alphabet coverage in plain text contexts you’re limited to workarounds.


Typing Unicode Subscripts on Each Platform

Windows: Hold Alt and type the decimal code on the numpad. For ₂, Alt + 8322. For ₁, Alt + 8321. For the full set, the decimal codes are 8320 through 8329 for digits 0 through 9.

Mac: Press Control + Command + Space to open the Character Viewer. Search “subscript” to find the available subscript characters and double-click to insert.

Chromebook and Linux: Press Ctrl + Shift + U, type the Unicode code point in hexadecimal (2082 for ₂, 2081 for ₁), and press Enter.

Any platform: Copy from a reference source and paste. For frequently used subscripts, set up a text replacement — mapping _2 to ₂ for example — so the character is always one shortcut away.


Chat Apps and Social Media

Most chat apps and social media platforms don’t support rich text formatting — meaning Word-style subscript formatting isn’t available. Unicode subscript characters are the practical solution for these contexts.

For chemical formulas and simple mathematical notation in chat, copy the Unicode subscript digits from the table above or set up text replacement shortcuts. H₂O typed with the actual Unicode ₂ character will display correctly in Discord, Slack, WhatsApp, Twitter/X, and most other platforms as long as the font used supports those characters.


Quick Reference

ContextMethodShortcut / Syntax
Microsoft WordKeyboard shortcutCtrl + =
Google DocsKeyboard shortcutCtrl + ,
PowerPointKeyboard shortcutCtrl + =
ExcelFormat Cells dialogCtrl + 1 → Font → Subscript
HTMLSemantic tag<sub>text</sub>
LaTeXUnderscore operatorx_{n}
Markdown (Pandoc)Tilde syntaxx~n~
Unicode (any platform)Character code₀₁₂₃₄₅₆₇₈₉

The Bottom Line

In Word and PowerPoint, Ctrl + = is the subscript shortcut to memorize — it’s fast, it’s toggleable, and it works across all modern versions. In Google Docs the equivalent is Ctrl + comma. In HTML use <sub> tags. In LaTeX use the underscore.

For plain text contexts where formatting isn’t available, Unicode subscript digits cover the most common use cases — chemical formulas, mathematical notation, and indexed variables all work with the available Unicode set. Set up a text replacement for the ones you use most and subscript in plain text becomes no harder than any other character.

Subscript isn’t a key — it’s a formatting instruction or a Unicode character. Know which one your context needs and the right method is obvious.

Leave a Comment