Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install Swift on Windows

Pick an install method and run the Swift installer on Windows.

Windows Hosting1 min read4 steps4 screenshots

Ways to install Swift on Windows

  1. WinGet, the Windows package manager.
  2. The installer (.exe). Download the x86_64 build for 64-bit PCs or the arm64 build for ARM devices.
  3. Scoop, a command-line installer.
  4. Docker, to run Swift in a container.

The installer is the simplest way for most users.

The Swift download page
Note: Swift on Windows needs Visual Studio build tools (C++ tools and a Windows SDK). Install them first if the installer asks for them.

Install with the installer

Step 1: Accept the terms

Run the downloaded file and accept the license terms.

The Swift installer start screen
  • Options lets you change the install settings.
  • Cancel closes the installer.

Step 2: Install

Click Install and wait until it finishes.

Swift installing

Check it

Open a new Command Prompt and run:

swift -v
The Swift version in Command Prompt

Features of Swift

  • Fast compiler and fast programs.
  • Modern syntax that is easy to read.
  • Memory safety that prevents many common bugs.
  • Generics to write code that works with many types.
  • Closures to pass functions as values.

Quick recap

  • Download the installer and accept the terms.
  • Check with swift -v in a new window.