Setting up KeePassXC

A start-to-finish walkthrough for KeePassXC, a free, open-source password manager that keeps your passwords in one encrypted file on your own computer. Allow about 30 minutes.

Last reviewed 15 November 2026

  1. Install KeePassXC

    Download it from the official site, keepassxc.org/download. Avoid download sites and search ads, which sometimes bundle malware.

    • Windows: run the installer (MSI).
    • macOS: open the DMG and drag KeePassXC to Applications.
    • Linux: install from your distribution’s package manager, Flatpak or Snap.
  2. Choose your master password

    This is the one password you’ll need to remember from now on, and it protects all the others, so make it strong. We recommend a 7-word passphrase from the generator.

    Write it on paper and keep it somewhere safe at home until you know it by heart. There is no way to reset it: if you forget it, the vault can’t be opened.

  3. Create your database

    Open KeePassXC and choose Create new database.

    • Give it a name, such as “Passwords”.
    • On the encryption settings screen, the defaults are good. Leave the decryption time at about one second; this is the key-stretching that slows down anyone trying to crack your file.
    • Enter your master password twice.
    • Save the file (it ends in .kdbx) somewhere you’ll remember, such as your Documents folder.
  4. Connect your web browser

    This lets KeePassXC fill in passwords on websites for you, and only on the right website, which also protects you from phishing.

    • In KeePassXC, open Tools → Settings → Browser Integration, tick Enable browser integration and tick the browsers you use.
    • Install the KeePassXC-Browser extension from your browser’s official extension store.
    • Click the extension’s icon and choose Connect. Give the connection a name when KeePassXC asks.
  5. Add your accounts

    Start with your most important accounts: email, banking, Apple, Google or Microsoft. For each one:

    • Log in to the website and go to its change-password page.
    • Use KeePassXC’s password generator (the dice icon) to create a new random password, and save the entry with the website’s address.
    • Change the password on the website to the new one.

    If your passwords are currently saved in your browser, you can export them as a CSV file and import them with Database → Import. Delete the CSV file afterwards, because it isn’t encrypted. Then turn off the browser’s own password saving.

  6. Add two-factor codes (optional)

    KeePassXC can generate 2FA codes: right-click an entry and choose TOTP → Set up TOTP. It’s convenient, but for your most important accounts consider keeping codes in a separate authenticator app. See the 2FA guide for why.

  7. Use it on your phone

    KeePassXC is desktop-only, but the same .kdbx file opens in compatible phone apps:

    • Android: KeePassDX
    • iPhone and iPad: KeePassium or Strongbox

    To keep the file in sync, store it in a folder that syncs between your devices, such as Syncthing, Nextcloud, Dropbox, OneDrive or iCloud Drive. The file is encrypted, so the sync service can’t read it. Try not to edit it on two devices at the same moment.

  8. Back it up

    Nobody else has a copy of your vault, so backups are your job. Follow the 3-2-1 rule: three copies, on two kinds of storage, with one kept somewhere else, such as an encrypted USB stick at a relative’s house. Update the backups every month or so.

    KeePassXC can do part of this automatically: Tools → Settings → General, then tick Backup database file before saving.

  9. Plan for emergencies

    If something happened to you, could someone you trust get into your accounts? Consider sealing your master password in an envelope with your important documents, or leaving instructions with your will.

Sources

Read next