Use Safari to download macOS on your Mac
Safari uses these links to find the old installers in the App Store. After you download the installer from the App Store, the installer opens automatically.
macOS Big Sur can upgrade Catalina, Mojave, High Sierra, Sierra, El Capitan, Yosemite, Mavericks
macOS Catalina can upgrade Mojave, High Sierra, Sierra, El Capitan, Yosemite, Mavericks
macOS Mojave can upgrade High Sierra, Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion
macOS High Sierra can upgrade Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion
Safari downloads the following older installers as a disk image named InstallOS.dmg or InstallMacOSX.dmg. Open the disk image, then open the .pkg installer inside the disk image. It installs an app named Install [Version Name]. Open that app from your Applications folder to begin installing the operating system.
macOS Sierra can upgrade El Capitan, Yosemite, Mavericks, Mountain Lion, or Lion
OS X El Capitan can upgrade Yosemite, Mavericks, Mountain Lion, Lion, or Snow Leopard
OS X Yosemite can upgrade Mavericks, Mountain Lion, Lion, or Snow Leopard