Install Swift - Windows
Install Swift
1. Install Swift via WinGet
Install Swift via the Windows Package Manager (also known as WinGet).
First, install Windows platform dependencies:
winget install --id Microsoft.VisualStudio.2022.Community --exact --force --custom "--add Microsoft.VisualStudio.Component.Windows11SDK.22621 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64" --source wingetNext, install Swift and other dependencies:
winget install --id Swift.Toolchain -e --source wingetAdditional details included in Instructions
2. Select an Editor
Visual Studio Code
Visual Studio Code is a cross-platform and extensible editor that supports Swift through the Swift extension, which provides intelligent editor functionality as well as debugging and test support.
Other editors
Any editor that supports the Language Server Protocol (LSP) can use SourceKit-LSP to provide intelligent editor functionality for Swift.
3. Build a Command-line Tool
Let’s write a small application with your new Swift development environment.
Create a directory:
mkdir MyCLIChange the directory:
cd MyCLICreate a new project:
swift package init --name MyCLI --type executableRun the program with
swift run MyCLIYou can continue to expand the program with additional features. Check out the getting started guide for command line tools.
Build a Command-line Tool Guide
Manual Installation
Download the Swift installer (.exe)
Container
Official container images are available for compiling and running Swift on a variety of distributions.
Previous Releases
Previous releases of Swift are available for installation on Windows using the manual installer, as documented here.
Previous Releases
Release Date Toolchain Docker
Swift 6.3.1
April 16, 2026
6.3.1-windowsservercore-ltsc2022
Swift 6.3
March 24, 2026
6.3-windowsservercore-ltsc2022
Swift 6.2.4
February 26, 2026
6.2.4-windowsservercore-ltsc2022
Swift 6.2.3
December 12, 2025
6.2.3-windowsservercore-ltsc2022
Swift 6.2.2
December 8, 2025
6.2.2-windowsservercore-ltsc2022
Swift 6.2.1
November 3, 2025
6.2.1-windowsservercore-ltsc2022
Swift 6.2
September 15, 2025
6.2-windowsservercore-ltsc2022
Swift 6.1.3
September 5, 2025
6.1.3-windowsservercore-ltsc2022
Swift 6.1.2
May 28, 2025
6.1.2-windowsservercore-ltsc2022
Swift 6.1.1
May 23, 2025
6.1.1-windowsservercore-ltsc2022
Swift 6.1
March 31, 2025
6.1-windowsservercore-ltsc2022
Swift 6.0.3
December 11, 2024
6.0.3-windowsservercore-ltsc2022
Swift 6.0.2
October 28, 2024
6.0.2-windowsservercore-ltsc2022
Swift 6.0.1
September 24, 2024
6.0.1-windowsservercore-ltsc2022
Swift 6.0
September 16, 2024
6.0-windowsservercore-ltsc2022
Swift 5.10.1
June 5, 2024
5.10.1-windowsservercore-ltsc2022
Swift 5.10
March 5, 2024
5.10-windowsservercore-ltsc2022
Swift 5.9.2
December 11, 2023
5.9.2-windowsservercore-ltsc2022
Swift 5.9.1
October 19, 2023
5.9.1-windowsservercore-ltsc2022
Swift 5.9
1
September 18, 2023
Unavailable
Swift 5.8.1
1
June 1, 2023
Unavailable
Swift 5.8
1
March 30, 2023
Unavailable
Swift 5.7.3
1
January 18, 2023
Unavailable
Swift 5.7.2
1
December 13, 2022
Unavailable
Swift 5.7.1
1
November 1, 2022
Unavailable
Swift 5.7
1
September 12, 2022
Unavailable
Swift 5.6.3
1
September 2, 2022
Unavailable
Swift 5.6.2
1
June 15, 2022
Unavailable
Swift 5.6.1
1
April 8, 2022
Unavailable
Swift 5.6
1
March 14, 2022
Unavailable
Swift 5.5.3
1
February 9, 2022
Unavailable
Swift 5.5.2
1
December 13, 2021
Unavailable
Swift 5.5.1
1
October 25, 2021
Unavailable
Swift 5.5
1
September 20, 2021
Unavailable
Swift 5.4.3
1
September 9, 2021
Unavailable
Swift 5.4.2
1
June 28, 2021
Unavailable
Swift 5.4.1
1
May 25, 2021
Unavailable
Swift 5.4
1
April 26, 2021
Unavailable
Swift 5.3.3
1
December 14, 2020
Unavailable
Swift 5.3.2
1
December 14, 2020
Unavailable
Swift 5.3.1
1
November 12, 2020
Unavailable
Swift 5.3
1
September 16, 2020
Unavailable
1 Swift toolchain is provided by Saleem Abdulrasool. Saleem is the platform champion for the Windows port of Swift and this is an official build from the Swift project.
Development Snapshots
Swift snapshots are prebuilt binaries that are automatically created from the branch. These snapshots are not official releases. They have gone through automated unit testing, but they have not gone through the full testing that is performed for official releases.
main
May 20, 2026
Package installers (.exe)
release/6.4.x
May 31, 2026
Package installers (.exe)
Previous Snapshots (main)
Download
Previous Snapshots (release/6.4.x)
Download