The xplit data file

A trip or an activity as JSON, with everything about it: the people, the activities, who took part and what each paid, the transactions not placed yet, and the groups. xplit writes it on Export and reads it on Import. You can also write one by hand, or have a script write it.

What it is for

The other exports, the web page, the PDF and the plain text, are for people to read: names and sums, laid out. The data file is for xplit to read back. It has the rows rather than the sums, so nothing is lost on the way.

  • Moving a trip between accounts. Export it on one, import it on the other. People are matched to the friends they were, as far as they can be found again.
  • A backup you own. The file is plain JSON. It needs nothing from us to open, and it will still mean something in ten years.
  • Making a trip from something else. A spreadsheet, a script, another app. Only the amounts are required; everything else may be left out.
  • Clone is the same thing done in one go: a trip or an activity written to a document and imported back under a new name.

In the app, Export stands beside the delete button of a trip or an activity, and xplit data is the last of its three formats. Import stands beside New trip on the Trips page, beside New activity on the Activities page, and on a trip's Activities tab, where it imports an activity into that trip. Drop the file on the dialog or choose it with the button.

The smallest file that works

An activity, one person, one payment. Everything not written here is filled in on import.

{
  "format": "xplit",
  "version": 1,
  "kind": "activity",
  "people": [{ "id": "p", "name": "Pat" }],
  "activity": {
    "id": "a",
    "name": "Lunch",
    "participants": [{ "id": "p" }],
    "transactions": [{ "payer": "p", "amount": 10 }]
  }
}

A trip, as the app writes it

Abridged, with one activity and one transaction not placed yet. Ids are the file's own and only need to agree within it; an import gives every row a new one, so nothing can collide with what is already there.

{
  "format": "xplit",
  "version": 1,
  "exportedAt": "2026-10-20T10:00:00.000Z",
  "kind": "trip",
  "people": [
    { "id": "p-ana", "name": "Ana",
      "friend": { "id": "f-ana", "name": "Ana Lima", "email": "ana@example.com", "userId": null } },
    { "id": "p-ben", "name": "Ben", "email": "ben@example.com", "friend": null }
  ],
  "groups": [
    { "id": "g-1", "name": null, "members": ["p-ana", "p-ben"] }
  ],
  "trip": {
    "id": "t-1",
    "name": "Lisbon, October",
    "currency": "USD",
    "createdAt": "2026-10-02T09:00:00.000Z",
    "activities": [
      {
        "id": "a-1",
        "name": "Friday dinner",
        "date": "2026-10-03",
        "details": "The place by the river",
        "createdAt": "2026-10-03T21:00:00.000Z",
        "participants": [
          { "id": "p-ana", "share": null },
          { "id": "p-ben", "share": 12.5 }
        ],
        "transactions": [
          { "id": "x-1", "payer": "p-ana", "amount": 107.25, "label": "Dinner",
            "currency": "EUR", "originalAmount": 96, "rate": 1.1172,
            "date": "2026-10-03", "createdAt": "2026-10-03T21:05:00.000Z" },
          { "id": "x-2", "payer": "p-ana", "amount": 9.5, "label": "Tip",
            "split": "proportional", "createdAt": "2026-10-03T21:06:00.000Z" }
        ]
      }
    ],
    "uncategorized": [
      { "id": "u-1", "amount": 8.9, "label": "Taxi", "payer": null,
        "activity": null, "date": null, "createdAt": "2026-10-04T08:00:00.000Z" }
    ]
  }
}

The top level

FieldValueNotes
format"xplit"Required. Anything else is turned down as not an xplit file.
version1Required. A file from a newer version of the format is refused with a message saying so; this page describes version 1.
kind"trip" or "activity"Required. Says whether the file holds trip or activity.
exportedAtISO 8601 momentOptional. When the file was made.
peoplelistRequired. Everyone the file refers to, by id.
groupslistOptional. The groups that settle as one on the Settle tab.
trip / activityobjectRequired, the one kind names.

People and the friends they were

A person is an id and a name. The id is any non-empty text, used by everything else in the file to refer to them; a readable one like p-ana is easiest to work with. Optionally, email is their address, as whoever made the file knows it, and the import gives it to the participant it makes. And friend says which of the exporting account's friends this person was, with whatever can find that friend again:

FieldValueFound again by
friend.idtext or nullThe friend's id, on the same account
friend.userIdtext or nullThe xplit account that friend is, on any account that has them as a friend
friend.emailtext or nullTheir email, on any account that keeps a friend with it
friend.nametextFailing all of the above, a friend of the same name. Left out, the person's name is used.

None of it is required. A person without friend is a name on the list, and the import offers to make a friend of them, or to link them to one of yours.

An activity

FieldValueNotes
idtextRequired. Unique among the trip's activities.
nametextRequired, up to 80 characters.
date"YYYY-MM-DD" or nullOptional. The day it happened.
detailstext or nullOptional. A line about it, shown beside the name.
currency"EUR" or nullOptional. What an activity that stands on its own counts in, as an ISO 4217 code; left out, the importing account's setting. Ignored on an activity of a trip, which counts in the trip's.
country"PT" or nullOptional. Where it took place, as an ISO 3166-1 alpha-2 code.
latitude, longitudenumbers in degrees, or nullOptional. The spot on the map; both or neither.
createdAtISO 8601 momentOptional. When the row was made; left out, the import dates it.
participantslist of { id, share }Optional. Who takes part: a person's id, and either null for an equal share or a fixed amount, not negative. A person takes part once.
transactionslistOptional. What was paid, oldest first (see below).

A transaction of an activity has a payer (a person's id, required), an amount (a number, required; negative for a refund), and optionally a label, a date, a createdAt and an id. A transaction entered in another currency than the trip counts in carries three more fields. The code in currency is ISO 4217, three capital letters. The amount as entered is originalAmount; left out, amount stands in. And rate is how much of the trip's currency one unit of currency was worth, a number above zero. With rate null, or left out, the conversion is still to be made: the app converts the original at the current rate as soon as it has one, and amount is only a stand-in until then. Someone may pay for an activity without taking part in it; they are credited for what they paid. In an activity imported on its own, such a person is added to the participants with a fixed share of zero, so that what everyone owes stays as it was.

A transaction, like an activity, may say where it was paid, in the same three optional fields: country, latitude and longitude.

A transaction of an activity may also say who shares it, in split. Left out, or null, it is shared by everyone in the activity, the way the activity shares things: fixed shares first, then equal parts of the rest. A list of people's ids, like ["p-ana", "p-ben"], shares it equally among those people, each of whom takes part in the activity. And "proportional" shares it among everyone, each in proportion to what else is theirs in the activity, which is how a tax, a service charge or a tip is split. A transaction that is in no activity yet has no split.

A trip

A trip has an id, a name (required, up to 80 characters), an optional createdAt, an optional currency (what it counts in, as an ISO 4217 code; left out, the importing account's setting), its activities and its uncategorized transactions: those in no activity yet. Both lists may be left out.

An uncategorized transaction has an amount, which is required, and the rest optional: a label, a date, a createdAt and an id. Its payer may be null while nobody is named yet. It takes the same currency, originalAmount and rate as a transaction of an activity. Its activity, the id of one of the trip's activities, says which one it is meant for when it is not placed in it yet. Even with both a payer and an activity known it waits on the Transactions tab until it is categorized; the app never moves it on its own.

Groups

A group has an id, a name (or null, to be named after its members), and members, a list of people's ids. A person is in at most one group. Groups belong to the trip, or to the standalone activity, and are imported with it.

The rules a file is checked against

  • Every id referred to, a payer, a participant, a member, an uncategorized transaction's activity, must be one the file defines. A reference to nobody is an error.
  • Amounts are JSON numbers, not strings: 12.5, not "12,50". Up to a billion either way.
  • Days are written YYYY-MM-DD and must be real days. Moments are ISO 8601, like 2026-10-03T21:05:00.000Z, and may be left out.
  • Text is trimmed. An empty name is an error; an empty label counts as none.
  • A currency is a code of three capital letters, like EUR, or null. A rate is a number above zero, or null while the conversion is still to be made.
  • A split is "proportional", a list of people's ids, or null. A list names each person once, and only people who take part in the activity.
  • Fields the app does not know are ignored, so a file from a later version with more in it still reads, and you may keep notes of your own in it.

A file is checked whole before anything is shown. If anything is wrong, every reason is listed by its field, trip.activities[2].transactions[0].payer names "p-dan", who is nobody in people, the first ten of them, and nothing is imported. The limits:

At most
500people
1,000activities
20,000transactions, in activities and not placed together
200groups
80characters in a name: a trip's, an activity's, a person's
500characters in a label or an activity's details
100characters in an id

What an import does

A good file shows what it holds and the people in it, each with a choice to look over. Importing a trip, or an activity of its own, the choice is who each person is among your friends. The import proposes the friend it found, and says what found them: the same friend, the same account, the same email, or the same name. You can take that, make a new friend, pick nobody, or choose This is me for one person, which also tells the trip which participant you are. Importing an activity into a trip, the choice is who each person is among the trip's participants, with Add missing participants ticked for everyone not found.

The name can be changed before importing. The import is one step: one save, one undo, one upload. Either all of it happens or none, and what cannot be done as planned, a friend deleted in the meantime, one friend chosen for two people, is said rather than skipped.

Versions

This is version 1 of the format. The currency fields arrived in October 2026 as optional fields of version 1: an older app ignores them and reads the converted amounts. The split field arrived in November 2026 the same way: an older app ignores it and shares the transaction among everyone in the activity. So did a person's email, and the place of an activity or a transaction, which an older app ignores. A later version of the app will always read a version 1 file. A file that says a version the app does not know yet is refused with a message that says to update, rather than read in part.

The shape is defined in the web app's source, in src/lib/transfer/format.ts, and the checks in validate.ts beside it. When this page and the code disagree, the code is right and this page needs a fix.

Try it with a trip of yours

Export one as xplit data, open the file, change a name, import it back. The dialog shows you what it found.