What squared means
A number squared is the number multiplied by itself: 5² is 5 × 5 = 25. The small raised 2 is called an exponent or power. The name comes from geometry, because the area of a square with sides of length 5 is 5².
The same raised 2 turns a unit of length into a unit of area: m² is square meters, km² is square kilometers, ft² is square feet. A raised 3 does the same for volume, as in m³ and cm³.
The character or superscript formatting?
There are two ways to get a small raised 2. The character ² is a single piece of text that keeps its shape wherever you paste it: a spreadsheet cell, a file name, a social post, a text message. Superscript formatting, as in Word or Google Docs, raises an ordinary 2, and that formatting is lost when the text is pasted somewhere plain.
Use the character when the text has to travel, and formatting when you are writing a document with many different exponents. Ready-made characters exist for the digits 0 to 9, a few signs and some letters; the Superscript Generator converts any text you type into them.
When the plain-text form is clearer
In code, formulas and calculators, powers are written with a caret: x^2. Spreadsheets use the same form. Programming languages vary: many use ** or a function such as pow(x, 2), and in some the caret means something else entirely. The ² character is for people to read, not for software to calculate with.
More operators are on the Math Symbols page.