Skip to content
Tinbox

tutorials

Mailchimp alternative, self-hosted: migrate off without losing your list

September 30, 2026

#mailchimp#migration#self-hosted#per-contact-pricing#newsletter
One newsletter connected to three distinct audience groups.

Leaving Mailchimp should not mean abandoning years of list, tags, and the unsubscribe state that keeps you compliant. The fear that stops people is "if I leave, do I lose my audience?" The answer is no, if you migrate the state and not just the rows.

The decision to leave Mailchimp is usually made before you start reading articles like this one. What you actually want is proof that the move will not cost you the thing Mailchimp has been holding: your audience, in the exact condition it is in today. Not just a list of addresses, but which of them unsubscribed, which hard-bounced, which carry which tags, and which merge fields your old automations leaned on.

This is a migration walkthrough. It covers why the move is worth making, what "migrating" actually has to preserve, and how to run the import end to end into a contact database you own. It is honest about what Mailchimp still does better, and about the one part of the move that does not transfer: sending reputation.

Why do people leave Mailchimp, and why is it hard to?

People leave Mailchimp because of per-contact pricing: the bill grows precisely as your audience grows, even when you send the same number of emails. The list is the product you are charged for, and you get charged more for succeeding at building it. A 5,000-contact audience and a 50,000-contact audience can sit a few hundred dollars a month apart while sending the identical weekly newsletter. You did nothing differently except grow, and growing is the thing you were trying to do.

It is fair to concede what Mailchimp is genuinely good at. The campaign builder is polished. The drag-and-drop editor is the best-in-class for non-technical marketers, the template gallery is large, and the integrations marketplace connects to almost everything. If your weekly workflow is a marketing person assembling a visual campaign with no engineer in the loop, Mailchimp removes real friction. None of that is the problem.

The problem is that leaving feels like a hostage negotiation. The export looks complete (a CSV with thousands of rows arrives in seconds), so you assume your audience came with it. It did not. The structured state that took years to accumulate, your tags, your saved segments, the subscribed-versus-cleaned distinction, is exactly the part the easy export flattens or drops. The friction of leaving is not technical difficulty; it is the quiet fear that you will arrive on the other side with a degraded list and not notice until you mail someone who opted out in 2022.

For the worked numbers on how per-contact billing compounds against you, see the per-contact pricing trap and how to escape it and the per-contact tax, with worked numbers. If you are still weighing where to land, the best Mailchimp alternatives that do not tax you per contact and the best flat-rate escapes from Mailchimp-style pricing survey the field before you commit to self-hosting.

What does "migrating" actually have to preserve?

A real migration has to preserve four things: contacts, subscription status, tags, and merge fields. Send history is a fifth, best-effort item. Get the first four right and your list is intact; get status wrong and you have a compliance incident waiting to happen.

Here is the state that matters and what to expect from a Mailchimp export:

What to preserveWhy it mattersComes through cleanly?
Contacts (email addresses)The list itselfYes, every export path
Subscription statusSuppresses opted-out and bounced contactsOnly via the API or All Contacts status column
TagsDrives segmentation and targetingFaithfully only via the Marketing API
Merge fieldsCustom columns your automations readYes, as columns
Saved segmentsRecomputed queries, not stored membershipNo, you re-create these
Open/click historyEngagement scoringBest-effort; treat as left behind

Set honest expectations. The Mailchimp Marketing API carries member status (one of pending, subscribed, unsubscribed, cleaned) and per-member tags faithfully. A flattened CSV often does not. And no export reliably hands you the full historical open and click event stream, so do not plan your migration around inheriting engagement scores. You migrate the list state; you rebuild engagement on the new platform.

The deeper teardown of what each export method drops lives in exporting your Mailchimp audience without losing tags, segments, or status. This article assumes you want the move done, not just the export understood.

Step 1: export your Mailchimp audience

Generate a Marketing API key, because it is the only export path that carries tags and status faithfully. Go to Account > Extras > API keys and create a key. The suffix after the dash is your data center (for example us21), and it is part of every API base URL.

If you would rather not touch the API at all, the audience's All Contacts > Export Audience flow produces a CSV that includes a contact status column. It loses structured tags and saved segments, but it is enough to migrate contacts and suppression state. For most migrations the API path is worth it because it keeps tags intact, and the importer below drives the API for you so you never write a pagination loop by hand.

You do not need to manually page through /lists/{id}/members yourself. That is exactly the work the importer does locally. Knowing the structure helps you verify the result, but the next step automates the fetch.

Step 2: how do I import a Mailchimp list into a self-hosted tool?

Run the Tinbox Mailchimp importer with your API key, and the CLI fetches the audience on your machine while the Worker bulk-inserts it into your own D1. The fetch is deliberately local. This is the load-bearing architecture decision: the heavy, slow, paginated API work runs in a full Node process on your laptop, and the Worker only exposes a thin, idempotent bulk-insert endpoint. No long-running serverless job to time out, and your Mailchimp API key never transits the Worker.

Mailchimp API  --(local CLI fetch, paginated)-->  your machine
      |                                                 |
      |                                          batched, idempotent POST
      v                                                 v
  audiences/members/                            Worker bulk-insert  -->  your D1 list
  merge-fields/tags

Install and run it:

npx tinbox import mailchimp --api-key <your-marketing-api-key>

A realistic, trimmed import log:

tinbox import mailchimp
  fetching audiences (local)            3 found
  audience "Weekly Digest" (a1b2c3d4e5)
    merge fields                        7
    members                             fetched 1000 ... 24187 total
    tags                                12
  posting to https://mail.acme.dev (batches of 200)
    contacts        inserted 24187  updated 0
    memberships     inserted 24187
    status preserved  subscribed 21044  unsubscribed 2810  cleaned 333
    tags applied    12
  done  24187 contacts in audience "Weekly Digest"

Note the status preserved line. That is the whole point of the migration: 2,810 unsubscribes and 333 cleaned addresses arrive suppressed, not folded into the subscribed count. The importer carries Mailchimp's status vocabulary through 1:1 and stamps a source_ref (like mailchimp:<member_id>) on each contact so a re-run reconciles to the same rows instead of duplicating them. Because the bulk-insert is idempotent, a dropped batch or an interrupted upload is safe to re-run.

Mapping fields and preserving unsubscribe state

The single rule that matters: never re-subscribe someone who opted out. Map status exactly, do not collapse it. A naive import that loads every row as "subscribed" is the cardinal sin of list migration. You will mail people who unsubscribed, you will mail addresses that already hard-bounced, and you will torch your new domain's reputation in one send.

The importer enforces this by mapping status before insert:

Mailchimp status   ->   imported state
  subscribed       ->   mailable
  unsubscribed     ->   suppressed (not mailable)
  cleaned          ->   suppressed (not mailable)
  pending          ->   pending (not mailable until confirmed)

Merge fields map to columns on the contact, and tags are applied by name. Saved segments do not transfer as membership, because in Mailchimp a segment is a recomputed query, not a stored list; you re-create those as queries against your own data after the move.

Failure then fix: unmapped and duplicate contacts

Real imports warn. Here is a first run that flags problems and the corrected run after you address them.

tinbox import mailchimp --api-key xxxx
  audience "Weekly Digest" (a1b2c3d4e5)
    members  fetched 24187 total
  WARN  41 members have status "transactional" with no 1:1 mapping; skipped
  WARN  merge field "MMERGE9" has no name; imported as "mmerge9"
  done (with warnings)  24146 inserted, 41 skipped

The transactional status is Mailchimp's non-marketing contact type and is not part of the standard subscribed/unsubscribed/cleaned vocabulary, so it is skipped by default rather than guessed at. Decide whether those 41 should come in as suppressed, then re-run with the flag:

npx tinbox import mailchimp --api-key <your-marketing-api-key> --include-transactional=suppressed
  audience "Weekly Digest" (a1b2c3d4e5)
    members  fetched 24187 total
  contacts  inserted 41  updated 24146   (re-run reconciled via source_ref)
  status preserved  subscribed 21044  unsubscribed 2810  cleaned 333  suppressed 41
  done  24187 contacts, 0 duplicates

Because every contact carries its source_ref, the re-run updates the 24,146 existing rows and inserts only the 41 new ones. No duplicates, even though you ran the importer twice.

Step 3: how do I verify the migrated list landed correctly?

Verify by counting rows per status and spot-checking a contact you know unsubscribed. The migration is only done when the suppressed counts match Mailchimp and a known opt-out is still suppressed.

npx tinbox doctor
tinbox doctor
  D1 connection            ok
  audience "Weekly Digest"
    contacts               24187
    subscribed             21044
    unsubscribed            2810
    cleaned                  333
    suppressed                41
  suppression list          ok (3184 not mailable)

Cross-check those numbers against Mailchimp's audience dashboard. If your Mailchimp audience shows 21,044 subscribed and your import shows the same, the mailable population transferred exactly. Then pick one contact you personally know opted out and confirm they arrive suppressed. If a known unsubscribe shows as mailable, stop and re-run with status mapping before you send anything.

Step 4: send your first broadcast from a list you own

Once verified, the list is rows in your own D1, and you send broadcasts and segments directly from it, with no per-contact fee on top. This article does not re-teach the broadcast flow; that lives in sending broadcasts and segments from a list you own. The relevant point here is what changed: your audience is no longer a line item that scales with growth. A 24,000-contact list and a 240,000-contact list cost effectively the same to store in SQLite.

What does deliverability look like after a migration?

A new sending domain has no reputation, so your first sends from it will be treated with suspicion no matter how clean the list is. The list state transfers instantly. Sending reputation does not. This is the part of the migration that has to be earned over time rather than imported.

Do not blast 100,000 contacts on day one. Mailbox providers read a sudden flood of mail from an unknown domain as exactly what spammers do. Send to your most engaged contacts first, the people who opened recently, and ramp volume over days. Watch for bounces and complaints and slow down if either climbs. The full warmup schedule is in warming up a new sending domain before you blast the list, and the email migration mistakes that tank your deliverability are the traps to sidestep while you do it.

If you also want to bring across raw mail rather than just the marketing audience, that is a different importer and a separate guide: see importing raw mail, not just the marketing list.

Where does Mailchimp still win?

Mailchimp still wins for non-technical marketing teams who live in a visual editor. If nobody on the team will run a CLI, the drag-and-drop campaign builder, the large template gallery, and the integrations marketplace are real advantages that a self-hosted tool does not match feature for feature. Mailchimp's automation journey builder is also more mature than what a freshly migrated self-hosted list gives you on day one.

The honest trade is this. You give up the polished marketing console and the no-engineer workflow. You get ownership of the list, a stack you deploy and run yourself, and a cost structure that stops punishing you for growing. For a developer or a technical founder who resents paying more every time the audience gets bigger, that trade is usually worth it. For a five-person marketing team with no engineer, it often is not. Know which one you are before you migrate. If self-hosting is a step further than you want to go right now, the newsletter platform alternatives with flat-rate pricing are a middle ground that still drops the per-contact tax.

This migration plugs into a larger stack: the same deployment that holds your list also handles your transactional sending and a human inbox. See the full email stack your migrated list plugs into for how the pieces fit.


Deploy this yourself: npx tinbox init <domain>, then run npx tinbox import mailchimp --api-key <key> to bring your audience across. The importer maps status 1:1 and is safe to re-run. See the docs for the full importer reference and the broadcast flow.

Frequently asked questions

Is there a self-hosted alternative to Mailchimp?

Yes. Tinbox is a self-contained email stack you deploy on your own Cloudflare account (D1, R2, Queues, Workers). It ships a Mailchimp importer that pulls your audiences, members, merge fields, tags, and campaigns over the Marketing API and bulk-inserts them into a contact database you own. After migration your list is rows in your own D1, with no per-contact pricing. Mailchimp's campaign builder is more polished for non-technical teams; Tinbox trades that for ownership and flat cost.

Will I lose my unsubscribes if I migrate off Mailchimp?

No, if you migrate over the API rather than a flattened CSV. Mailchimp tracks member status as subscribed, unsubscribed, cleaned, or pending. The Tinbox importer carries that status through 1:1, so contacts who opted out stay suppressed and are not mailable on the new system. Re-mailing an unsubscribed or cleaned address is the cardinal sin of list migration: it damages reputation and can violate CAN-SPAM and GDPR. Verify the suppressed counts after import before you send anything.

Does the Mailchimp export include everything?

Not quite. A CSV export reliably carries email addresses and merge fields but flattens tags and drops saved segments. The Marketing API carries member status and per-member tags faithfully. Neither path is guaranteed to hand you complete historical open and click events; treat send history as best-effort. Migrate the contacts, status, tags, and merge fields you can verify, and accept that some engagement history stays behind in Mailchimp.

Do I keep paying Mailchimp per contact after migrating to a self-hosted tool?

No. Mailchimp prices on the number of contacts in your audience, so growing the list raises the bill even when send volume is flat. Once the list lives in your own D1 it is rows in a SQLite database on your Cloudflare account. You pay Cloudflare's usage-based costs for storage and Workers, not a per-contact subscription. A list of 50,000 and a list of 500,000 cost effectively the same to store.

Can my migrated list go straight to a large campaign?

No. A migration usually means a new sending domain, and a new domain has no reputation, so a same-day blast to the full list is the fastest route to the spam folder. Send to your most engaged contacts first and ramp volume over days. The list state transfers instantly; sending reputation does not, and has to be earned on the new domain.