Open format · v2

The .underfiction Archive Format

An .underfiction file is a plain, uncompressed ZIP archive containing human-readable JSON for your stories, characters, worlds, and directions alongside SHA-256 verified images and video clips. Rename it to .zip and any operating system can open it without Underfiction.

Why an open archive format exists

Apps close. When the Soulmate companion app shut down in September 2023, its users had weeks to say goodbye to characters they had talked to for years. In October 2026 Character.AI filed for Chapter 11 and said the platform would wind down if no buyer kept it running. A story should outlive the app that hosted it: every Underfiction client, on the web, iPhone and Android, reads and writes this same v2 container, with no proprietary encoding.

Container contract

File extension
.underfiction
MIME type
application/vnd.underfiction.archive+zip
Format identifier
underfiction.archive (version 2)
Compression method
ZIP store (method 0) — zero extra runtime dependencies; media is already compressed
Integrity verification
ZIP CRC-32 per entry plus SHA-256 hex digest and byteCount for every image and video
Safety limits
No absolute paths or .. traversal, no duplicate paths, no ZIP64 or encrypted entries, max 4,096 entries, 2 GiB/entry, 4 GiB total
Scopes
story (single story + transitive characters/worlds/media) or library (full portable account backup)

manifest.json structure

Every archive contains a root manifest.json listing every entity and media file by stable ID and path. Timestamps are whole Unix milliseconds. A story export bundles one story with its referenced cast and world; a library export captures your entire device library while excluding built-in templates.

{
  "format": "underfiction.archive",
  "version": 2,
  "scope": "story",
  "createdAt": 1785300000000,
  "stories": [
    { "id": "story-id", "path": "stories/000000.json", "updatedAt": 1785299900000 }
  ],
  "characters": [
    { "id": "character-id", "path": "characters/000000.json", "updatedAt": 1785299800000 }
  ],
  "worlds": [
    { "id": "world-id", "path": "worlds/000000.json", "updatedAt": 1785299700000 }
  ],
  "directions": [],
  "media": [
    {
      "kind": "image",
      "id": "image-id",
      "path": "media/image/000000.webp",
      "mimeType": "image/webp",
      "byteCount": 12345,
      "sha256": "lowercase-hex"
    }
  ]
}

Media verification & graceful offline handling

Every bundled image or video entry records its MIME type, exact byteCount, and lowercase sha256 digest; importers verify both before writing to local storage. If an image or clip has not finished syncing to the exporting device, the manifest records {"missing": true} instead of failing the backup, preserving the story text and structure intact.

Interoperability with other apps

FormatSupportWhat transfers
Underfiction Archive (.underfiction)Import & ExportFull stories with their scenes and every alternative reply, character sheets, worlds, saved directions, pictures, and video clips
TavernCard V1 / V2 / V3 (.png, .json, .charx)Import & Export (V2)Character definitions, portraits, example dialogue, alternate greetings, and embedded lorebooks
World Info / Lorebook (.json)Import & ExportSillyTavern World Info, TavernCard character_book, and NovelAI lorebooks
Character.AI, SillyTavern & NovelAI story logsImportCharacter.AI JSON chats, SillyTavern .jsonl transcripts, and NovelAI .story / .scenario files