If you're talking about how to type them here in this website, then the little [x²] button above the editing box will turn highlited text into superscript.
In spreadsheets (such as Excel) and many programming languages, using the carat [^] symbol (shift-6, on the keyboard), will raise to a power. Example:
Chat with our AI personalities
If you mean a fraction then: 1/2. If you mean exponents then use a smaller font for the 2.
2
Terms
252 or 54
You cannot do that.