Last verified: November 2026

Keeping Passwords Out of Text Macros and Clipboards

What belongs in a macro, what stays in a password manager and where copied text ends up. Part of our guide to keyboard macros at work.

  • What is safe to store in a macro
  • Where clipboard text ends up
  • What to use instead of a typed password
Text macro, clipboard and password storageText to sendSaved snippetsupport@example.comPassword (do not store)••••••••Use a vaultClipboard historycopied item 01copied item 02Cleared atrestartPinned items stay until removedRule of thumbPasswords stay in a managerNo passwords in macros

Why Passwords Do Not Belong in Text Macros

Do not put passwords in a text macro. Macro files and clipboard lists are ordinary data on the PC, so anyone who can open that folder can read them. Use a password manager for logins and keep macros for harmless text.

The temptation is real: a short code that types your login saves seconds. The trade is a readable secret on a work machine, and in most workplaces that breaks policy. Vendors of text-expansion tools say the same. TextExpander states that its app is not meant for sensitive information and points users to a password manager, and HCL’s guidance says not to store unencrypted passwords in macros.

What belongs in a macroFine in a macroEmail signatureMeeting linkStandard replyAddress lineKeep out of a macroAccount passwordsCard numbersRecovery codesCustomer records
What belongs in a macro, and what stays in a password manager.

Where Copied Text Ends Up

Windows clipboard history, opened with Win+V, keeps up to 25 items and clears them at restart except pinned ones. Sync across devices is tied to your Microsoft or work account, and each item can be up to 4 MB.

A macro tool with several clipboards adds its own storage on top. Macro Keys lists multiple clipboards among its features, with a Delete all Clipboard Entries button on its Options screen. Either way, the rule is the same: do not copy a password or a card number while a clipboard tool is running.

  • Pinned clipboard items survive a restart.
  • Account sync can move copied text to another device.
  • Clearing history is a setting, and it is yours to use.
Clipboard history lifecycleCopya valueHeldin clipboard historyRestartthe PCUnpinneditems are goneHistory holds up to 25 items and clears at restartPinned items stay until you remove them
Copied text can sit in more than one place.
Macro Keys screen with several separate clipboard slots for holding copied text at the same time
The Multiple Clipboards tab of Macro Keys with saved entries.

What Is Safe to Store in a Macro

Safe contents are standard replies, signatures, addresses of public offices, form labels and short notes. Unsafe contents are passwords, one-time codes, card or bank numbers, customer records and anything covered by confidentiality rules.

Fine in a macro

  • Standard email replies
  • Your signature block
  • Public office addresses
  • Common ticket phrases

Keep out of a macro

  • Passwords and PINs
  • One-time codes
  • Card and bank numbers
  • Customer records

If you must keep macro files or exports somewhere shared, lock the folder first. The Folder Lock product page describes password protection for folders on Windows. Clearing traces is a different job, which the History Clean page covers.

Before you save a macro

0 of 4 completed

What to Do Instead

Use a password manager your employer approves, or the browser and single sign-on tools IT provides. They fill logins without leaving a readable copy in a text file.

For the wider answer on safe macro use, see the risks section of the main guide. If you are still deciding whether to use a tool at all, the approval guide comes first, and the official Macro Keys page describes what the tool does.

Sharing Macros and Leaving a Team

Macro files travel: they get emailed to coworkers, copied to new laptops and left behind when someone changes roles. Each move is a chance for stored text to end up where it should not be.

Before you send a macro file, open it and read every entry. An old entry from a past project may hold a customer name or an internal address. When you hand back a laptop or change teams, delete the macro file, clear the clipboard history and remove the tool if IT asks you to.

  • Read the whole file before sharing it.
  • Send it through an approved channel, not a personal account.
  • Delete your copy of any macro that held team-only text when you move on.

A German review of Macro Keys describes a store of the last 100 clipboard entries, which is a good reason to clear the list before you return a PC. Check the number in your own copy.

Questions About Passwords and macros

Technically yes, safely no. The text sits in a readable file. Use a password manager.

It stores whatever you copy, up to 25 items, until restart unless pinned. Avoid copying secrets.

The official Macro Keys page mentions encryption but does not name a method, so do not rely on it for secrets.

Do not store them. They are single-use and belong only on the screen you received them on.

Only after you have read every entry and removed anything private. Use an approved channel, because the file is plain text anyone can open.

Open Win+V and clear the list, or use the clear option in Windows settings.

Where to Go Next

Keep macros to harmless text

Macro Keys is a free Windows tool for typed phrases, kept apart from your logins.

Download Macro Keys free →