GUIDEHow to open an encrypted Home Assistant backup without Home Assistant

My Home Assistant is gone. I have the backup .tar and my encryption key. How do I get my files out?

You open the backup and the .tar.gz files inside will not open: they are encrypted. Add the backup .tar and your own encryption key, the one in your backup emergency kit: HA Backup Opener decrypts it in your browser and lets you save the files, such as configuration.yaml and automations.yaml, without a running Home Assistant.

Home Assistant: “Home Assistant encrypts your backups by default.” (Home Assistant, “Backup emergency kit”). You need your key. Without it, the backup cannot be opened.

  • Nothing uploaded: the backup and the key stay on your device
  • Every file listed; preview YAML and JSON on the page
  • Save one file, a decrypted archive, or everything as a ZIP

At a glance

What HA Backup Opener does and doesn’t do

  • Works withAn encrypted Home Assistant backup .tar, added whole, without unpacking it first. SecureTar v1, v2 and v3, compressed or not. Also a single inner archive such as homeassistant.tar.gz, and backups that are not encrypted.
  • Gives youThe summary from backup.json (name, date, Home Assistant version, type, add-ons, folders), the list of every file with its size, a preview of text files, and the files themselves: one by one, a decrypted inner archive (.tar or .tar.gz), or everything as a ZIP.
  • Runs onAny modern browser: Windows, Mac, Linux. Nothing to install.
  • FreeOpening and decrypting, the backup summary, the full list of files, and preview and download of configuration.yaml, automations.yaml, scripts.yaml, scenes.yaml and secrets.yaml.
  • Full$9 one-time. Any file, the decrypted inner archives, and the ZIP of everything. No subscription.
  • PrivacyDecrypted in your browser. Nothing is uploaded. The key is not stored.
  • Doesn’tRecover or guess a lost key. Restore the backup into a Home Assistant. Download backups from Home Assistant Cloud. Open backups of other systems.
  • Tested withThe encrypted backup files that the Home Assistant project publishes in its own test suites (core, supervisor and the securetar library): SecureTar v2 and v3, compressed and uncompressed, opened with their password, and a SecureTar v1 archive opened with the AES key its test uses. The files extracted from a v2 backup and from a v3 backup are identical, byte for byte, to the copy of the same backup that Home Assistant decrypted.
Opens the backup files written by
  • Home Assistant
3 versions

SecureTar v1, v2 and v3, compressed or not

What is in the file
Byte for byte

extracted files compared with Home Assistant’s own decrypted copy

What we checked
5 files

of your configuration free, with the full file list

Try it
$9

once, every file and archive, no subscription

Pricing

The problem

You have the backup. You cannot just unpack it.

The Raspberry Pi died or the SD card failed. What is left is a .tar file and your key. The .tar opens, but what is inside does not.

The inner archives are encrypted

Inside the backup there is one archive per part: homeassistant.tar.gz, one per add-on, one per folder. In an encrypted backup they are in the SecureTar format, and an archive program calls them damaged.

Only your key opens them

Home Assistant: “The backup emergency kit is a text file with this key.” And about a lost one: “If you have lost that encryption key, there is no way to restore the backup.”

Restoring needs a new system

Home Assistant can restore the backup, on a working installation. If you only want your automations or your configuration back, you need the files, not a restore.

How it works

Three steps. No account, no upload.

  1. Step 1

    Have the backup and your key

    The backup .tar as Home Assistant wrote it, and the encryption key from your backup emergency kit. About the key

  2. Step 2

    Add them here

    Drop the .tar on this page and type the key, or drop the emergency kit .txt too. The backup is decrypted on your computer.

  3. Step 3

    Look, then save

    See the summary and every file. Preview your YAML files, save the ones you need, or save everything. What is inside

Open a backup

Add your backup .tar and your encryption key

Everything runs on this page. Your backup and your key never leave your device.

Drop your Home Assistant backup .tar here

The whole .tar, not unpacked. You can also drop the emergency kit .txt: the key is read from it. Nothing is uploaded.

    Reads Home Assistant backups in SecureTar v1, v2 and v3. The file is only read, never changed. The key is used on this page and is not stored. Without the key of the backup, it cannot be opened.

    Free: opening and decrypting, the backup summary, the full list of files, and preview and download of configuration.yaml, automations.yaml, scripts.yaml, scenes.yaml and secrets.yaml. Unlock everything for $9.

    Inside the file

    A plain tar, with encrypted archives inside and a check that the key is right.

    HA Backup Opener derives the key the way Home Assistant does, checks it, and decrypts each inner archive in pieces, on your computer. If the key is wrong, nothing is shown.

    • The outer tarNot encrypted. It holds backup.json, which says what the backup contains, and the inner archives.
    • SecureTar v3Your key goes through Argon2id; each archive gets its own key with BLAKE2b and is encrypted with XChaCha20-Poly1305 in 1 MiB blocks, each one authenticated.
    • SecureTar v1 and v2AES-128 in CBC mode; the AES key is the first 16 bytes of SHA-256 applied 100 times to your key.
    backup.tar
    ./backup.json          name, date, version
    homeassistant.tar.gz   SecureTar
    core_mosquitto.tar.gz  SecureTar
    media.tar.gz           SecureTar
    homeassistant.tar.gz (v3)
    magic    SecureTar + version 3
    size     of the data before encryption
    salts    for Argon2id and BLAKE2b
    check    32 bytes: is the key right?
    blocks   XChaCha20-Poly1305, 1 MiB each

    What you get

    Your files, out of the backup.

    Not a restore: the files themselves, to read, copy or keep.

    The backup summary

    Name, date, Home Assistant version, full or partial, the add-ons and folders it includes, and which SecureTar version it uses.

    Every file listed

    Each inner archive with its files, paths and sizes. A search box finds a file by name among thousands.

    Preview of text files

    YAML, JSON, logs and the files of .storage are shown on the page, up to 1 MB each.

    One file at a time

    Save automations.yaml, a .storage file or the database, exactly as it is in the backup.

    Decrypted archives, or a ZIP

    Save an inner archive decrypted, as a normal .tar or .tar.gz that any archive program opens, or every file in one ZIP.

    Stays on your device

    A backup holds your passwords and tokens. It is decrypted in your browser and nothing is sent anywhere.

    What we checked

    Home Assistant’s own test backups, compared byte for byte.

    Only what we ran: the backup files that the Home Assistant project publishes in the test suites of core, supervisor and the securetar library.

    WhatWhat HA Backup Opener doesWhat we checked
    SecureTar v3Decrypts with the key (Argon2id, XChaCha20-Poly1305)Four backups from the core tests, compressed and uncompressed: each opens with its password and gives a valid tar
    SecureTar v2Decrypts with the key (AES-128-CBC)Five backups from the core and supervisor tests, compressed and uncompressed: each opens with its password and gives a valid tar
    SecureTar v1Decrypts the format without a header and repairs its gzip trailerThe v1 backup of the securetar tests, opened with the AES key that test uses: three archives, each a valid gzip and tar
    Same files as Home AssistantExtracts the files unchangedA v2 backup and two v3 backups against the copy of the same backup that Home Assistant decrypted: same list of files, every file identical byte for byte
    A wrong keyRefuses, and says soWith another key nothing is decrypted, in v1, v2 and v3; in v3 the check happens before any data is read
    Damaged or cut filesRefuses, and says soA changed byte and a cut file are refused in v3 and in compressed v2; the securetar fixtures with a missing or early final block are refused too. In an uncompressed v1 or v2 backup a changed byte inside a file cannot be detected: those formats carry no check value
    SavingFiles, decrypted archives, ZIPThe decrypted archives pass tar -t; the ZIP of everything passes unzip -t and holds the same bytes

    Pricing

    Free to open and look. $9 once for everything.

    Start free

    Free

    $0

    Opening and decrypting, the summary, the full file list, and your five main configuration files.

    Open my backup
    • Check that your key opens your backup
    • Every file listed, with its size
    • Preview and download configuration.yaml, automations.yaml, scripts.yaml, scenes.yaml and secrets.yaml
    • No account

    ONE-TIME

    HA Backup Opener Full

    $9 USD

    one-time · every file · every archive

    Unlock everything, $9
    • Preview and download any file
    • The .storage folder and the database
    • Each inner archive, decrypted (.tar or .tar.gz)
    • Everything in one ZIP
    • No subscription
    Secure checkout by Stripe. The full version unlocks in the browser you pay from. Questions: support@cedanolabs.org.

    FAQ

    Questions about opening an encrypted Home Assistant backup

    Want the long version? Read the guide.

    Read the guide
    How do I open an encrypted Home Assistant backup without Home Assistant?

    Open HA Backup Opener in a browser, add the backup .tar file exactly as Home Assistant wrote it, and type the encryption key of that backup, the one in your backup emergency kit. The tool decrypts the archives inside the .tar on your computer, lists every file and lets you preview and save them. Nothing is uploaded and nothing is installed.

    Why are the .tar.gz files inside my backup unreadable?

    A Home Assistant backup is a plain .tar that holds backup.json and one archive per part: homeassistant.tar.gz, one per add-on, one per folder. When the backup is encrypted, those inner archives are stored in the SecureTar format, so an archive program reports them as damaged or not in gzip format. They are not damaged: they have to be decrypted with the encryption key first.

    What do I need?

    The backup .tar file and the encryption key of that backup. Home Assistant’s documentation says: “Home Assistant encrypts your backups by default.” and “The backup emergency kit is a text file with this key.” You can type the key, paste it, or drop the emergency kit .txt file on the page so the key is read from it.

    I lost my encryption key. Can this tool open the backup anyway?

    No. Home Assistant’s documentation says: “If you have lost that encryption key, there is no way to restore the backup.” HA Backup Opener does not recover, guess or bypass keys. The same page explains that if your Home Assistant still runs and you have not changed the key since, you can show the key under Settings > System > Backups.

    Where is my encryption key?

    In the backup emergency kit, a text file named home_assistant_backup_emergency_kit_….txt that Home Assistant offers to download when backups are set up. It holds a line with the key: 7 groups of 4 letters or digits separated by dashes. Backups made with a password you chose yourself open with that password.

    Do I type the key with the dashes?

    Yes, type it as it is written in the emergency kit. Home Assistant uses the key as text, dashes included. HA Backup Opener first tries exactly what you typed. Only if that does not open the backup, it also tries the same text without spaces around it, and the kit form with capitals and a dash every 4 characters.

    Which backups does it open?

    Home Assistant backups in the SecureTar format, versions 1, 2 and 3, compressed or not. Version 3 (Argon2id and XChaCha20-Poly1305) is what Home Assistant writes now; versions 1 and 2 use AES-128. Backups that are not encrypted open too, without a key, and the page says they were not encrypted. A single inner archive, such as homeassistant.tar.gz taken out of the backup, can be added on its own.

    What can I get out of the backup?

    Any file in it: configuration.yaml, automations.yaml, scripts.yaml, scenes.yaml, secrets.yaml, the .storage folder, the database home-assistant_v2.db when the backup includes it, and the data of add-ons and folders. You can preview text files, save one file, save a whole inner archive decrypted as a normal .tar or .tar.gz, or save everything as one ZIP.

    What does the wrong key do?

    Nothing is shown. For SecureTar v3 the key is checked against a value in the header before anything is decrypted. For v1 and v2 the first block must decrypt to the start of a gzip or tar archive. In both cases the page says that the key does not open the backup.

    What happens with a damaged or incomplete file?

    SecureTar v3 authenticates every block and marks the last one, so a changed byte or a cut file is refused with a message. Versions 1 and 2 have no authentication: damage is caught by the gzip checksum when the backup is compressed, by the padding of the last block, and by the checksum of every tar header. In an uncompressed v1 or v2 backup, a changed byte in the middle of a file’s contents cannot be detected by any tool.

    Is my backup or my key uploaded anywhere?

    No. The file is read and decrypted by JavaScript on this page, on your device. There is no upload step and no account. The key is used in memory and is not stored, not even in your browser. The site makes requests for its own files, for cookieless page analytics and, if you buy the full version, for the payment check, which sends a payment ID and never a file or a key.

    How large a backup can it open?

    The backup is read in pieces and is not loaded into memory whole: the outer .tar is read by position, and each inner archive is decrypted and listed as a stream. To read one file, its archive is decrypted from the start up to that file. A decrypted archive or a ZIP that you save is first assembled by the browser, which needs that much free space, and one ZIP is limited to 4 GB and 65,535 files; larger backups are saved archive by archive.

    Can it restore the backup into Home Assistant?

    No. It takes files out of a backup. To restore a whole system, use Home Assistant itself, which asks for the same key. This tool is for when you want the files: to read an automation, to copy your configuration into a new installation, or to check what a backup holds.

    Can it download my backups from Home Assistant Cloud?

    No. It opens a backup file that you already have on your computer. It does not connect to Home Assistant Cloud or to any Home Assistant.

    Is there a free way to do this?

    Yes. If your Home Assistant still runs, its documentation says: “If you download the backup from the Home Assistant backups page, Home Assistant decrypts the backup on the fly.” And the format is open: the securetar library that Home Assistant uses is open source (Apache-2.0) and can decrypt a backup from Python. HA Backup Opener does it as a web page, with nothing to install.

    How does the $9 full version work?

    Free: opening and decrypting, the backup summary, the full list of files, and preview and download of configuration.yaml, automations.yaml, scripts.yaml, scenes.yaml and secrets.yaml. That lets you check that your key works and that your files are there before paying. The full version is a single $9 payment, with no subscription and no account: any file, the decrypted inner archives and the ZIP of everything. It unlocks in the browser you pay from.

    Is this a Home Assistant product?

    No. HA Backup Opener is an independent tool by Cedano Labs LLC. Not affiliated with Home Assistant, Nabu Casa or the Open Home Foundation.

    Get your configuration back.

    Add your backup and your key, check that your files are there, and save them. Free: opening and decrypting, the backup summary, the full list of files, and preview and download of configuration.yaml, automations.yaml, scripts.yaml, scenes.yaml and secrets.yaml.

    The SecureTar format was read in the official library home-assistant-libs/securetar (Apache-2.0). SecureTar v3 is decrypted with libsodium.js (ISC), served from this site.