Plenty of download pages list a SHA256 checksum next to the ISO, and on Windows I see people install a separate hashing tool for it. You don’t need one. PowerShell has Get-FileHash.
Get-FileHash .\ubuntu.iso
By default it uses SHA256, which is what most download pages give you. The output has three properties: Algorithm, Hash and Path. Other algorithms are available with -Algorithm: SHA1, SHA384, SHA512 and MD5.
Comparing a long hex string by eye is how mistakes happen, so let PowerShell do it. Paste the checksum from the website between the quotes:
(Get-FileHash .\ubuntu.iso).Hash -eq "PASTE-THE-SHA256-FROM-THE-SITE"
True means the file is exactly what the publisher put online. False means a broken download or a different file, and I’d download it again before I flash it to a USB stick.
Caveat: Microsoft’s own docs say MD5 and SHA1 are no longer considered secure and are only fit for simple change checks. And a checksum from the same server as the file only proves the download isn’t damaged. If the site itself was tampered with, both can be fake, which is why some projects also sign their checksums.
Further reading: Microsoft Learn: Get-FileHash