SUPERSCRIPT IN WORD
Method 1
To superscript Word, type the word in the usual way. For example m2. Select the character which you want to change, and press CTRL and +. Note that this is the plus symbol to the left of the Enter / Enter / Enter key on the standard keyboard, not the number one. It will look like this:

Write the word that contains the subscript or superscript in the standard way, and highlight the letter you want to change. In old versions of Word go to the Format menu , and go to Font. In modern ones, look for the tool ribbon, go to the Home, Format and Font tab.
Inside Font are the Subscript and Superscript icons. Press one or the other as you need:

SUPERSCRIPT IN GOOGLE DOCS
Write the base element and the superscript element together and select the element which will be the superscript.
Then Go to the Format tab Select Text and click Superscript.

Select the element that will be the superscript then press CTRL with + key
To remove the superscript, select the superscript element and press the CTRL with + key