DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeText / StringSuperscript & Subscript

About Superscript & Subscript

Superscript & Subscript preview - Text / String tool

Convert letters/digits to ˢᵘᵖᵉʳ or ₛᵤᵦ script — CO₂, H₂O, x². Part of the DevTools Surf developer suite. Browse more tools in the Text / String collection.

Use Cases

  • Scientists writing chemical formulas like H₂O and CO₂ in plain text
  • Mathematicians expressing exponents like x² without LaTeX rendering
  • Students formatting footnote references as superscript numbers
  • Developers embedding mathematical notation in code comments

Tips

  • Type chemical formulas like CO2 and get proper subscript CO₂ output
  • Mathematical expressions like x2 become x² with superscript digits
  • Not all letters have unicode super/subscript variants — check output carefully

Fun Facts

  • Unicode superscript digits (U+2070-U+2079) were among the earliest additions to Unicode 1.0 (1991), driven by the need to represent mathematical exponents in plain text.
  • The superscript letters available in Unicode are incomplete — only a, e, h, i, j, k, l, m, n, o, p, r, s, t, u, v, w, x, y have official superscript forms.
  • Subscript notation for chemical formulas was standardized by Jons Jacob Berzelius in 1814 — before that, chemists used alchemical symbols and varying notation systems.

FAQ

Which characters are available?
Digits 0–9 fully covered in both. Letters: full lowercase for most, partial uppercase (some letters like q and f have no superscript in Unicode). The tool warns about gaps.
Why not use HTML <sup>/<sub>?
Unicode works in plain-text contexts where HTML doesn't — Twitter, terminals, emails. For web pages, use <sup>/<sub> for proper typography and better rendering control.
Can I write H₂O with this?
Yes — capital H, subscript 2, capital O. Useful for chemistry notation in plain-text docs.
What about math notation?
Simple cases (x², H₂O) yes. Complex expressions (fractions, integrals) need LaTeX or MathJax. Unicode covers the inline common stuff only.

Related Text / String Tools

URL EncoderURL DecoderHTML Entity EncodeHTML Entity DecodeJWT DecoderLorem Ipsum GeneratorWord CounterText Diff
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback