If you type the same email sign-off, support reply, address or code snippet several times a day, a text expander can save you a lot of keystrokes. Espanso is a free, open-source one that works in almost any app: you type a short keyword and it swaps it for the full text as you type. This guide is based on Espanso's official documentation and GitHub pages, checked on 1 December 2026.
What is Espanso?
Espanso describes itself as "A Privacy-first, Cross-platform Text Expander". It's open source under the GPL-3.0 licence, and it runs on Windows, macOS and Linux. The basic idea, in the developer's words, is that "Espanso detects when you type a keyword and replaces it while you're typing."
Those keywords are called triggers, and a rule that links a trigger to its replacement is called a match. A match can be as simple as turning :sig into your email signature, but it can also insert today's date, open a small form for you to fill in, or run a script.
If you're still deciding which automation tool suits you, our round-up of the best free automation tools for Windows compares Espanso with AutoHotkey, PowerToys and others. Espanso is the one to pick if your problem is mostly typing the same text.
What you need
Windows 10 or later, on an x64 PC. Espanso's Windows page says it currently supports only the x64 architecture, with ARM support planned. That means it won't run natively on Windows on Arm laptops for now.
A plain text editor. Notepad is fine. Espanso's settings and snippets are plain YAML text files.
About ten minutes to set up your first snippets.
Step 1: Install Espanso
Espanso's Windows installation page offers three options:
The installer (x64), which most people should use.
A portable zip (x64), if you'd rather not install anything. You start the portable version with START_ESPANSO.bat.
A package manager. If you already use winget, run this in Windows Terminal or PowerShell:
winget install --id=Espanso.Espanso -e
Chocolatey (choco install espanso) and Scoop are supported too. If you haven't used winget before, see our guide on how to install apps with winget.
Espanso's documentation warns that because its digital signature is "still relatively new", Windows SmartScreen may show a warning, and it tells you to click "More info" and then "Run anyway". Only do that for a file you downloaded from espanso.org or through winget, Chocolatey or Scoop, never for a copy from somewhere else.
Step 2: Check that it's working
Once Espanso is running, you'll see its icon in the system tray. Open Notepad and type :espanso. The documentation says you should see "Hi there!" appear. That's the built-in test match.
If nothing happens and there's no tray icon, start Espanso again from the Start menu (or with START_ESPANSO.bat for the portable version). If that doesn't work, the documentation's advice is to reinstall it.
Step 3: Find your configuration folder
Everything Espanso does is controlled by files in one folder. On Windows it's %APPDATA%\espanso, which is usually C:\Users\yourname\AppData\Roaming\espanso. You can also run espanso path to see the exact location. AppData is hidden by default, so paste the path into File Explorer's address bar to open it.
Inside are two subfolders:
match, which holds your snippets. Espanso's docs say this folder defines what Espanso should do. The main file is match\base.yml.
config, which holds the settings. This folder defines how Espanso should perform its expansions. The main file is config\default.yml.
A quick way to open your snippet file in Notepad is to run espanso edit.
Step 4: Create your first snippet
Open match\base.yml. You'll see a matches: section that already contains the :espanso test. Add your own match underneath it, keeping the same indentation:
- trigger: ":br"
replace: "Best Regards,\nJon Snow"
Change the name to your own, then save the file. Espanso should notice the change and reload automatically. Now type :br anywhere and it'll expand into a two-line sign-off.
A few rules from the documentation will save you some head-scratching:
Indentation matters. Use spaces rather than tabs. If the indentation is wrong, the YAML isn't valid and the trigger won't work.
Use quotes when needed. Text containing \n (a new line) or \t (a tab), or starting with a YAML special character, must be in quotes.
Longer text can span lines. Use replace: | followed by indented lines, and Espanso keeps the line breaks exactly as you typed them.
Starting each trigger with a character you rarely type, such as a colon or semicolon, makes accidental expansions much less likely.
Step 5: Make snippets smarter
Expand only whole words
If you want Espanso to fix a common typo, add word: true to the match. Espanso then only expands the trigger when it's a standalone word. The documentation's example turns "ther" into "there" in "Is ther anyone else?" but leaves "other" alone. Adding propagate_case: true keeps your capitalisation, so a trigger typed with a capital first letter gives a capitalised result.
Insert the date or time
Espanso can insert dynamic values through variables. This example from the docs expands :now into the current time:
- trigger: ":now"
replace: "It's {{mytime}}"
vars:
- name: mytime
type: date
params:
format: "%H:%M"
Change the format parameter to suit you. Espanso's extensions documentation links to the full list of formatting options, so you can set up a UK-style day/month/year date too.
Forms are handy for replies that are mostly the same but need a name or detail changed. Use form: instead of replace: and put each field in double square brackets:
- trigger: ":greet"
form: |
Hey [[name]],
Happy Birthday!
When you type :greet, Espanso opens a small window asking for the name. Submit it with the Submit button or Ctrl+Enter. Forms also support multi-line text fields, choice boxes and list boxes.
Step 6: Use the search bar and install packages
You don't need to remember every trigger. Press Alt+Space to open Espanso's search bar, find the snippet you want and insert it. You can also open it from the tray icon. If Alt+Space clashes with another app, change it with the search_shortcut option in config\default.yml, or turn it off with search_shortcut: off.
Espanso also has a built-in package manager and an online store called the Espanso Hub, where people share ready-made sets of matches. For example, this installs the Basic Emojis package:
espanso install basic-emojis
If Espanso doesn't pick up the new package straight away, run espanso restart.
Espanso snippets can run shell commands and scripts, so read what a package does before you install it, just as you would with any other software.
Step 7: Turn Espanso off where it gets in the way
Undo an accidental expansion
If a snippet fires when you didn't want it to, press Backspace straight away. Espanso reverts the expansion and puts your trigger back. If you'd rather not have that behaviour, add undo_backspace: false to config\default.yml.
Add a quick on/off key
You can pause Espanso from its tray icon. For a quicker switch, set a toggle key in config\default.yml, for example:
toggle_key: RIGHT_CTRL
Espanso then switches on or off when you double-press that key. The toggle key is off by default, because the developers found people were pressing it by accident.
Disable it in specific apps
App-specific configurations let you change Espanso's behaviour per program. To turn it off in one app, create a file in the config folder, such as config\telegram.yml, containing:
filter_exec: Telegram
enable: false
filter_exec matches text in the app's executable path. You can also do the opposite and only load some snippets in certain apps. Put them in a match file whose name starts with an underscore, such as match\_email.yml (Espanso doesn't load these automatically), then add that file with extra_includes in an app-specific config.
Tips for using Espanso safely
Don't store passwords in snippets. Your match files are plain text YAML in your AppData folder, so anyone or anything with access to your user account can read them.
Back up the espanso folder. It's the whole of your setup, so copy it to your normal backups or cloud storage. That also makes moving to a new PC easy.
Keep it updated. Version 2.4.1 was the latest release on Espanso's GitHub page when we checked.
If you want keyboard remapping or more complex automation rather than text replacement, our guide to using AutoHotkey is the next step. For a clipboard history that remembers what you've copied, see our pick of the best free clipboard managers for Windows.