How do I download a list of top web sites?

Alexa Top 1M web sites

This list is supposedly the first 1 million top web sites, but looking at the zip file, it is a CSV that shows around 594k web sites. That’s still enough for you right? It is not clear whether the domain will accept non-secure http or secure https.

Cisco Umbrella Popularity List

Majestic Million

You can export via CSV and the file provides more details such as previous rank, referenced IPs, etc.