New to Rust? Grab our free Rust for Beginners eBook Get it free →
How to Install Wget on Windows: Steps and Checks

A repeatable command-line task can save a file from a URL without opening a browser. Wget is a tool that retrieves files from URLs for use in terminal commands and scripts.
I’ll walk through setting up Wget on Windows and using it for a single-file download.
TL;DR
To install Wget on Windows, download a Windows build, add the folder containing wget.exe to your user PATH, then open a new terminal and check the command.
- Use the Windows binary page at eternallybored.org and select the package for your system architecture.
- Avoid treating the GnuWin32 1.11.4 installer as a current build. Its package page dates it to 2008.
- Verify with wget --version, then download one known file before trying advanced options.
What is Wget for Windows?
GNU Wget is a command-line tool for retrieving files over HTTP, HTTPS and FTP. It retrieves files from a URL without opening a browser, so it fits scripts and repeatable command-line tasks.
The GNU project publishes source code, while Windows binary builds provide ready-to-run executables. The GnuWin32 package page lists Wget 1.11.4, with files dated 2008. Check a Windows binary maintainer’s version and security notes before choosing a build.
Recursive retrieval follows links and can create many requests, so start with a single file and widen scope only when needed.
How to install and use Wget on Windows
Download a Windows executable, put its folder on PATH, then verify it with a fresh terminal and retrieve one file. These are the moving parts I would check first because each fixes one distinct setup failure.
Step 1: Download a Windows build
Open the Windows Wget binaries page and choose the package matching your Windows architecture. Its security note flags an issue in versions 1.21.4 and older. The download page lists version 1.25.0 in the record checked for this refresh.
Extract the ZIP to a folder you control, such as C:\Tools\Wget, or run the selected installer if that package offers one. Confirm the folder contains wget.exe. Keep the program in its own folder rather than copying it into Windows system directories.
Step 2: Add the executable folder to PATH
Add the folder containing wget.exe, not the executable filename. Use a new entry so existing command folders stay available.
- Open Start and search for “Edit environment variables for your account.”
- Select the user variable named Path, then choose Edit. Create it if it is absent.
- Add the full folder path, for example C:\Tools\Wget, and save the dialogs.
The user Path keeps this change scoped to your account.
Step 3: Open a new terminal and verify Wget
Close existing Command Prompt or PowerShell windows and open a fresh one. A terminal reads its environment when it starts, so old windows may not see your updated PATH.
wget --version
where wget
The version command should print Wget’s version and license information. In Command Prompt, where wget should show the path to the executable. If you use PowerShell, Get-Command wget checks command resolution there.
Step 4: Download a file
Pass the file URL to Wget from the folder where you want the download saved. Add -O when you want a specific local name.
wget -O robots.txt https://example.com/robots.txt
Wget writes the response to robots.txt in the current directory. GNU’s manual cautions that -O behaves like output redirection and can truncate an existing file, so choose a new filename or check the destination first.
What should you check when Wget fails?
When Windows cannot find Wget, check the executable path and reopen the terminal before reinstalling. A fresh command lookup tells you whether PATH resolves the program.
| Symptom | Check | Next step |
|---|---|---|
| “wget is not recognized” | Does PATH point to the folder containing wget.exe? | Correct user Path and open a fresh terminal. |
| Download fails | Is the URL correct and reachable? | Check the address and read Wget’s error. |
| Partial file exists | Does the server support HTTP range requests? | Use wget -c URL only if resuming the same file. |
Use the resume option only when the remote file is the same one you started downloading. If it changed, restart rather than append mismatched data.
Recursive retrieval follows links and can create many requests and files. Start with one direct download, then consult the GNU manual before widening the scope. Downloaded material may have its own usage terms.
Windows also includes curl, according to Microsoft. In Windows PowerShell 5.1, the command name can resolve to an alias for Invoke-WebRequest. Use curl.exe to call curl.
For related Windows command-line setup, see how to update Node.js on Windows. The desktop setup guide covers the broader workstation context.
Conclusion: Choose a maintained Windows build
The useful setup is small: select a Windows Wget build, add its containing directory to your user PATH and verify the command in a new terminal. Use the official manual when you need an option beyond a single file download.
FAQ
These quick answers cover Wget availability, setup and the first download on Windows.
Does Wget work on Windows?
Yes. GNU Wget supports Windows, and Windows-specific binary builds are available. Choose a build that matches your system and verify it in a new terminal.
How do I download a file with Wget on Windows?
Run wget followed by the file URL. Use wget -O filename URL to choose the local filename, and check before overwriting an existing file.
Why does Windows say Wget is not recognized?
The executable may be missing or its containing folder may not be on PATH. Add the folder to your user Path, then open a new terminal and check command resolution.




