Method 1: Desktop application
Enable the URL bar in Steam: go to Steam › Settings › Interface and tick “Display Steam URL address bar when available.”
Visit your profile and copy the address. It will look like https://steamcommunity.com/profiles/7656119..., which is the SteamID64.