How to Move Your Keyboard Macros to a New Windows PC
Export from every tool on the old PC, install the same tool versions on the new one, import, and test one macro of each type before you wipe the old machine. Keep the old PC untouched for a week.
| Applies to | Windows 10 and Windows 11 |
|---|---|
| Time needed | 30 to 45 minutes |
| Difficulty | Easy to moderate |
| Cost | Free |
| Admin or internet | No admin for copying; internet only to download installers |
| Last verified | November 2026 |
01 // BEFORE YOU WIPE
Part of our guide to how to back up and share keyboard macros. The short version of this job sits in the backing up and sharing section.
What to Export From the Old PC Before You Wipe It
Moving macros to a new Windows PC means exporting from every tool that holds them, one tool at a time, before the old machine is reset. Missing a single tool is the usual cause of a macro that vanishes after the move.
| Tool | Copy this | Then |
|---|---|---|
| Macro program with an Export command | The exported file | Note the program version beside it |
| AutoHotkey | Every .ahk file, including included files | Note whether the scripts target v1 or v2 |
| PowerToys | A Back up & restore backup | Install the same PowerToys release on the new PC |
| Windows Shortcut key field | The .lnk shortcut files | Check that each target path exists on the new PC |
| Macro pad software | The vendor profile export | Install the same app generation |
Match Tool Versions Before You Import
Install the same tool version on the new PC as the one that wrote the file, because export files can be tied to an app generation. Razer’s support article on exporting and importing macros says Synapse 3 macro files will not work in Synapse 4, and the reverse is also true.
Scripts have the same trap. AutoHotkey v2 reads files as UTF-8 by default, which differs from v1, and the syntax between the two versions is not identical. Write the version on the first line of every script you carry over.
#Requires AutoHotkey v2.0
; moved from: work-laptop, 2026-11-25Carry the Files Across by USB, Cloud or Network Share
A USB drive, a synced folder and a network share all work, and two copies in different places beat one. Following the 3-2-1 idea described in this local-versus-cloud overview, keep one copy local and one elsewhere until the move is finished.
A USB stick can go missing in a bag. Protect any drive that carries your macro library with a drive password, for example through USB Secure.
robocopy "C:\Users\YourName\Documents\Macros-Backup" "E:\Macros-Backup" /EImport and Test on the New PC
Import in the same order you exported, then run one macro of each type in the app it was written for. Notepad proves text only; the real app proves timing.
In Macro Keys, the add-macro window carries Import Macros from File and Export Macros to File buttons, and the Options window repeats them. Use the same version on both PCs, import the file, and check the macro count against the old PC.
The screenshot shows the add-macro window with its trigger box, text field and the on-screen keys the program offers for keystroke sequences.

What Changes on the New Machine
Three things shift without warning: key combinations, file paths and screen size. A new PC often ships with OEM utilities that claim function-key combinations. Windows itself can claim Win+G for Xbox Game Bar even after a remap, according to the PowerToys documentation.
Mouse macros store screen positions. On a different display they click the wrong place. Rewrite them as keystrokes where you can, or re-record them on the new screen.
The Overlap Week Rule
The overlap week rule says to leave the old PC’s macros untouched for seven days after the move, long enough for a full working week to expose a macro you forgot. Wipe the old machine only after that week passes without a missing macro.
Questions About Moving Macros
Yes for the tools in this guide, since they run on both versions, though you should test on the new build. The Macro Keys FAQ says the developer tested on all Windows variants. Run one macro of each type after the import.
Yes, if you copy the .lnk files. The key combination is stored inside the shortcut file, so it travels with it. The shortcut stops working if its target path does not exist on the new PC.
Mouse macros will click in the wrong place, because they store positions. Keystroke macros are unaffected. Re-record mouse steps on the new screen or replace them with keyboard steps.
Yes, by saving the export into a synced folder. Scrub the file first, since a synced copy sits on a server. Check that the sync finished before you wipe the old PC.
Keep them for one working week after the move. A macro you use only on Fridays shows itself missing within seven days, and the old PC still has the original to copy from.
NEXT STEP
Try the free export route
If your macros are mostly text and hotkey launchers, Macro Keys is a free Windows program with import and export buttons built into its windows. Test the import on the new PC before you rely on it.