² Superscript Two

All symbols
Superscripts · Technical · NumbersU+00B2 · Latin-1 Supplement
²

Superscript Two

U+00B2 · decimal 178 · Latin-1 Supplement

Every way to write it

6 forms
HTML entity

²

This character has no named entity, so the numeric form is the one to use.

CSS content

\00B2

For a content property in a ::before or ::after rule. No semicolon, and mind the trailing space.

JavaScript

\u00B2

Valid in a JavaScript or JSON string literal, so it survives files and pipelines that are not UTF-8 clean.

Python

\u00B2

The escape for a Python string literal.

URL

%C2%B2

Percent-encoded UTF-8, for a query string or a path segment.

UTF-8 bytes

C2 B2

2 bytes on the wire. Seeing these as separate garbled characters means something decoded them as single-byte text.

Typing it without copying

system picker
macOS

Control + Command + Space, then search superscript two

Windows

Character Map or Alt + 178

Groups it belongs to

Characters near it

8
Code pointU+00B2
EntityNumeric
UTF-82 bytes
ASCIINo