Downloading Your Mastodon Archive and Data Export

how to export your mastodon data

Worried your posts vanish if your server shuts down? Here is how to export your Mastodon data: open Settings > Import and export > Export for CSV lists, and request a post archive once every 7 days.

This guide is part of the wider online privacy guide, which covers how to stay in control of your accounts and your information.

Item Value
Where CSV exports live Settings > Import and export > Export
Post and media archive request limit Once every 7 days
Archive format Activity Streams 2.0 JSON
Importing posts or media into a new server Not supported, per the docs
Cooldown after a profile move 30 days

These figures come from the Mastodon documentation on moving or leaving accounts. Settings and limits can change, so check that page before you rely on them.

What you can export from Mastodon

Mastodon gives you a pair of download types: small CSV files for your account lists, and a separate archive of your posts and media. Both are requested from the same settings area, so you do not need any extra tools.

According to the Mastodon documentation, the CSV export covers these items:

  • The accounts you follow
  • The lists you have created
  • The accounts you have blocked
  • The accounts you have muted
  • The domains you have blocked

Your following, blocking, muting and domain-blocking lists can be brought back in at Settings > Import and export > Import. There you choose whether the file is merged with what you already have or overwrites it.

Steps to download your CSV lists

The CSV files are the quickest part of the job. They are tiny, they download in moments, and they are the files you will want most if you ever rebuild your account somewhere else.

  1. Sign in to your account on your server’s website.
  2. Open Settings, then Import and export, then Export.
  3. Download each CSV file you want: follows, lists, blocks, mutes and blocked domains.
  4. Save the files in a folder you will remember, with the date in the folder name.

Repeat the export every so often, not only when you are leaving. A fresh CSV backup after you change who you follow or block means your saved copy matches your real account.

How to request your post archive

Your posts and media are not in the CSV files. You ask for them separately, and the Mastodon documentation says an archive request can be made once every 7 days, with the result delivered in Activity Streams 2.0 JSON format (see the Mastodon documentation).

The Fedi.Tips guide points out that an archive request is a personal copy of your account’s contents and is especially useful if your old server is closing down. You can read that advice in the Fedi.Tips transfer guide.

Because the format is JSON, you will not open it like a spreadsheet. Think of it as a safety copy you keep rather than a file you browse every day.

how to export your mastodon data Connected drive
A purple external drive connects to a laptop through a black cable.

What the archive can and cannot do

The Mastodon documentation says Mastodon does not support importing posts or media, because of technical limitations. Your archive can still be viewed by any software that understands how to parse Activity Streams documents, so the file is not locked inside Mastodon.

That makes the archive a personal backup, not a way to restore your account on a new server. A guide hosted at expressional.social agrees, saying not to use the archive request for migrating data because the file cannot be imported on a new server, though it is good for regular backups (see the Masto Guide on moving servers).

The same limit applies when you move. The Mastodon docs state that your posts will not be moved, so the archive is the only way to keep a copy of them.

In practice, the archive is well suited to a few jobs:

  • Keeping a personal copy of everything you have posted and uploaded.
  • Preparing for a server that may close, so your words and pictures survive it.
  • Making regular backups alongside your CSV lists, so both sit in the same folder.

It is a poor fit for one job: expecting your old posts to appear on a new account. The Masto Guide explains that posts made on the old server cannot be moved to the new server and stay on the old one until you delete that account, which is optional (see the Masto Guide on moving servers).

The sensible habit is to treat the two downloads as complementary. The CSV files rebuild your follows, blocks and mutes on a new account, while the archive preserves the content you wrote. Keep both, label them with the date, and you will have a complete picture of your account whatever happens to your server.

Exporting before you move or delete

If you plan to change servers, export first and move second. The docs explain that a profile move should carry your followers over, but it does not automatically transfer your follows, blocks, mutes or bookmarks, which you import from the CSV files you saved earlier.

Use this checklist before you press any move button:

  • Download every CSV file from the old account.
  • Request and save the post archive.
  • Write down your followed hashtags, because the Fedi.Tips guide says they are not transferred and must be set up again by hand.
  • Check the old account for notifications and direct messages you still need.

That last point matters. The documentation warns that once you proceed with the move, you will no longer have access to your old account.

There is also a cooldown to respect. The Mastodon docs describe a 30-day period in which you cannot migrate again, so be sure of your new server first (see the moving documentation).

Deleting an account is a bigger step still. The docs say deleting your account is irreversible, so make sure your exports are saved and checked before you go near that form.

Keeping your exported files safe

Your exports show who you follow, block and mute, so store them somewhere private rather than in a shared folder. If you want stronger protection for the account you are backing up, the guide on how to use a password manager covers the basics.

Be wary of anyone who messages you offering to “help” with an export or a move. The guide on how to spot social media scams explains common warning signs to look for.

Frequently asked questions

How often can I request a Mastodon archive?

Show answer

The Mastodon documentation says you can request an archive of your posts and media once every 7 days. See the moving or leaving accounts page for the current wording.

Can I import my old posts into a new server?

Show answer

No. The Mastodon documentation says importing posts or media is not supported, so the archive works as a backup you can view with compatible software.

What format is the Mastodon archive in?

Show answer

It downloads in Activity Streams 2.0 JSON format, according to the Mastodon documentation. Any software that can parse Activity Streams 2.0 documents can read it.

Does the archive help me move my followers?

Show answer

No. The Fedi.Tips guide says the archive request has nothing to do with account transfers, because followers are handled by the separate move process. Use the archive only for your own copy.

Can I undo deleting my account?

Show answer

No. The Mastodon documentation says deleting your account is irreversible, so export your data first.