This might not work in all programs, in that case just copy and paste the symbol from Notepad.
Watch video How to type in a Squared² or Cubed³ symbol in Notepad (Alt 253, Alt 0179) online, duration hours minute second in high quality that is uploaded to the channel furulevi 21 March 2019. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 171,639 times and liked it 969 visitors.