Join our Newsletter — 33% off our NHI Course
Home› Guides› Offline Password Managers for Beginners: How KeePass Works…
Guide Secrets Management

Offline Password Managers for Beginners: How KeePass Works and When to Use One

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 3 December 2026 11 min read
On this page

An offline password manager keeps your passwords in one locked file on your own device.

This guide is for anyone who wants a password manager but would rather not keep passwords in an online account. It explains how tools such as KeePass work, what can go wrong, and when an offline tool is a sensible choice.

In short

  • KeePass and KeePassXC store your passwords in one encrypted file that you keep, not in an online account.
  • One master key opens the file. If you lose any part of it, the passwords inside are lost too.
  • Syncing between devices is your job, usually through a cloud folder, so keep any key file out of that folder.
  • Fake download sites have copied KeePass, so get the software only from its official site.

What you will learn

  • Explain how an offline password manager differs from an online one.
  • Check that your master key and backups are set up safely.
  • Spot a fake download page before you install anything.
  • Decide whether an offline tool suits you.
Locked password file (database)
the single file where the tool keeps all your passwords, scrambled.
Main unlock (master key)
the password, and any extra file, you need to open that file.
Spare unlock file (key file)
a small file you add to the master key, so a password alone is not enough.

What is an offline password manager?

Think of a locked notebook that lives in your own desk drawer. Nobody else stores it for you. You hold the only key, and you decide where copies go.

An offline password manager works the same way. KeePass calls itself a free, open source password manager [1]. Open source means anyone can read the program's code. It keeps your passwords in one encrypted (scrambled so only the right key can read it) database file, opened by a single master key [1]. KeePassXC is a separate open source app that uses the same kind of file [4].

The whole file is scrambled, not just the passwords. User names, web addresses and notes are scrambled too [3].

Where the comparison stops working: a locked notebook can be forced open with tools. A well-locked password file has no lock to break. Without the right master key, the contents stay scrambled.

New to the idea of password managers in general? Start with Password Managers for Beginners. This page looks at the offline kind.

Why does it matter?

A password manager helps you create and store strong, different passwords for each account [7]. An offline tool gives you more control. It also gives you more jobs: backups, syncing and safe downloads are now yours.

If you use it at home

What could happen: your laptop dies, there is no backup, and every saved password goes with it.

Check this: keep a recent copy of the file somewhere other than your main device.

Next: Password Security for Beginners

If you look after a small office

What could happen: a colleague downloads a fake copy from a search advert, and it installs harmful software.

Check this: give staff one approved download link or install it for them.

Next: Password Manager Setup Guide

If you are new to IT work

What could happen: passwords that software uses to talk to other software end up in a personal file nobody else can reach.

Check this: keep secrets that apps use in a shared, managed vault, not in one person's file.

Next: Secrets Management for Beginners

What does it look like?

Here is a made-up note of where someone keeps the parts of their offline password manager.

Example only. All values are made up.

My password manager set-up (EXAMPLE)
Database file:  Cloud-Folder/EXAMPLE-vault.kdbx      (1)
Key file:       Cloud-Folder/EXAMPLE-vault.keyx      (2)
Master password: written on a note in the laptop bag  (3)
Backup:         none yet                             (4)
App downloaded: from a search advert                  (5)
  1. The locked file sits in a cloud folder so it syncs. That is common.
  2. In a real file, this line would show where the key file lives. Here it sits next to the database.
  3. The password is kept with the laptop. One theft gives both.
  4. With no backup, one broken device can lose it all.
  5. Search adverts have led to fake KeePass sites before.

Why this is risky: anyone who gets into the cloud folder gets both files. The extra lock adds little.

The safer way: sync only the database. Keep the key file apart. Remember the password, keep a backup and use the official site.

How does it work?

  1. You create the master key. It can be a password, a key file, or both. KeePass on Windows can also tie it to your Windows account [2].
  2. The tool stretches the key. It runs the master key through a slow process called key derivation. This makes each guess slower for anyone trying many passwords [3].
  3. The file is scrambled. The whole database is encrypted with a strong method such as AES or ChaCha20 [3].
  4. You open it with every part of the key. All parts of the master key are needed. KeePass says there is no back door and no universal key [2].
  5. You choose how to sync. KeePassXC has no built-in cloud sync. Its guide suggests a cloud folder you already use for the file. Move any key file another way, such as on a USB stick [4].
Diagram titled How an offline password manager keeps your passwords. On the left, You, with a master password in your head. An arrow leads to the middle box: Your device, holding the password app and the locked database file. From the device, one arrow leads up to a box labelled Cloud folder, syncs the locked file only. A second arrow leads down to a box labelled Separate place, such as a USB stick, holds the key file and a backup copy. A note at the bottom says every part of the master key is needed to open the file, and there is no reset.
Figure 1. Keep the locked file, the key file and your master password in different places.

A key file adds a second thing you must have, on top of the password you know [2]. KeePass warns that a key file must not be changed, or the database will no longer open [2]. KeePassXC advises keeping a backup of the key file in a safe place [4].

KeePassXC runs on Windows, macOS and Linux. It has no official phone app, and its guide names other apps that can open the same file type on phones [4].

A worked example

Lowri Grover is a freelance translator. She wanted a password manager but did not want her passwords held in an online account. A friend suggested KeePassXC.

She typed the name into a search engine. The top result was an advert with the right logo. Lowri remembered reading that fake KeePass adverts had once led to a lookalike site [6]. She skipped the advert and typed the official address herself.

She made a long master password from four random words she could remember. She also made a key file. Her first plan was to put both in her cloud folder, so her laptop and desktop would stay in step.

Then she thought again. If someone got into her cloud account, they would have the file and the key file together. So she put only the database in the cloud folder. She copied the key file to each computer by USB stick, and kept a spare copy in a drawer at home.

Once a month she saves a dated copy of the database on an external drive. She tested that copy once, by opening it on her desktop with her password and key file.

Six months later her laptop would not start. Lowri bought a new one, installed KeePassXC from the official site, copied in the key file from her drawer and opened the synced database. Nothing was lost, because every part of her set-up had a second copy in a separate place.

Myths and mistakes

What people thinkWhat is true
If I forget my master password, I can reset it.There is no reset. If any part of the master key is lost, the data in the file is lost [2].
Offline means I never need to think about the internet.Many people sync the file through a cloud folder. That copy needs the same care as the original.
A key file in the same folder as the database is extra safety.If both sit together, one break-in gets both. Keep them apart [4].
The top search result is the real download.Adverts have pointed to lookalike sites. Type the official address or use a link you trust [6].
Only my passwords are scrambled.KeePass scrambles the whole file, including user names, web addresses and notes [3].

What can I do this week?

  • Check where your app came from, and reinstall from the official site if you are not sure. KeePassXC says a copy from its official site needs no further checks [5].
  • Move any key file out of the folder that holds your database.
  • Save a backup copy of the database and key file on a separate drive.
  • Test the backup by opening it once.
  • Turn on two-step checks for the cloud account that syncs your file.

Checklist

  • I downloaded the app from the official website.
  • My master password is long and I can remember it.
  • My key file, if I use one, is kept apart from the database.
  • I have a spare copy of the key file in a safe place.
  • I keep a dated backup of the database on a separate drive.
  • I have tested that my backup opens.
  • The cloud account that syncs the file has two-step checks turned on.

Common questions

Is an offline password manager safer than an online one?

Not always. It is different. You avoid keeping passwords in an online account, but you take on backups, syncing and safe downloads yourself. If those jobs are done well, it is a solid choice. If they are skipped, a lost device or a fake download can cause real harm.

What happens if I forget my master password?

The data is lost. KeePass says every part of the master key is needed to open the file, and there is no back door or universal key. That is why a password you can remember, and a spare key file in a safe place, matter so much.

Can I use KeePass on my phone?

Yes, through other apps. KeePassXC has no official phone app, but its guide lists other apps that can open the same file type on phones. Download any of them from the official app store, and check the maker's name before you install.

Do I need a key file?

No, it is optional. A key file adds something you must have as well as something you know. It helps only if you keep it apart from the database and keep a spare copy. A lost or changed key file stops the database opening.

Should a team keep shared work passwords in one person's KeePass file?

It is better not to. A file only one person can open becomes a problem when that person is away or leaves. Secrets that apps and services use need an owner and a shared, managed vault, which is covered in the practitioner guide.

Where next?

Ready for the detail? Read the practitioner guide: KeePass and KeePassXC Security. It goes further into key derivation settings, enforced settings for teams, browser add-ons and monitoring.

Also useful:

Related NHI Mgmt Group resources: Secrets Management for Beginners, Password Manager Setup Guide and Non-Human Identities for Beginners.

Key terms

Password manager
A tool that creates, stores and fills in strong passwords so you only need to remember one.
Master password
The one password that opens your password manager.
Key file
A file used as an extra part of the master key, so a password alone cannot open the database.
Encryption
Scrambling information so only someone with the right key can read it.
Malvertising
Online adverts that lead people to harmful sites or downloads.
Typosquatting
Using a web address that looks almost the same as a real one to fool visitors.

Sources and further reading

  1. KeePass, "KeePass Password Safe", official website. https://keepass.info/ (accessed 3 Dec 2026).
  2. KeePass, "Composite Master Key", KeePass Help Center. https://keepass.info/help/base/keys.html (accessed 3 Dec 2026).
  3. KeePass, "Security", KeePass Help Center. https://keepass.info/help/base/security.html (accessed 3 Dec 2026).
  4. KeePassXC, "Documentation and FAQ", KeePassXC Team. https://keepassxc.org/docs/ (accessed 3 Dec 2026).
  5. KeePassXC, "Verifying Signatures", KeePassXC Team. https://keepassxc.org/verifying-signatures/ (accessed 3 Dec 2026).
  6. Malwarebytes, "Clever malvertising attack uses Punycode to look like KeePass's official website", Malwarebytes Threat Intelligence, 18 October 2023. https://www.malwarebytes.com/blog/threat-intel/2023/10/clever-malvertising-attack-uses-punycode-to-look-like-legitimate-website (accessed 3 Dec 2026).
  7. National Cyber Security Centre, "Top tips for staying secure online: password managers", NCSC. https://www.ncsc.gov.uk/collection/top-tips-for-staying-secure-online/password-managers (accessed 3 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.