1. Paste CharacterAI Definition

2. Select Portrait Image (Optional)

We will embed the data into this PNG. (Default used if empty).

Technical Whitepaper: Extracting and Embedding Character Data

The process of moving a character from **CharacterAI (c.ai)** to **TavernAI (V2 PNG)** involves a paradigm shift in data handling. On CharacterAI, your character is a collection of fields managed by a central database. In the TavernAI ecosystem, your character is a self-contained, portable binary object (a PNG file) carrying its own "DNA" in its metadata chunks.

1. Overcoming Format Asymmetry

CharacterAI utilizes a relatively flat schema, where the core logic is hidden within the Definition (Advanced) field. This field often contains a mix of descriptive traits, world-building, and example dialogues. To convert this effectively for TavernAI, our engine must parse this "monolith" and intelligently distribute the content across the TavernAI V2 schema's distinct fields: personality, description, scenario, and mes_example.

This asymmetry is the primary reason why simple "copy-pasting" often results in poor character performance. Our tool applies semantic heuristics to ensure that the character's core identity remains cohesive during the transition from cloud-based to local-first roleplay.

2. The Binary Injection Process

Unlike CharacterAI, where the image is just a decorative asset, a TavernAI V2 card is a functional data container. Our tool uses a specialized binary injector written in browser-based JavaScript. When you provide a PNG image (or use our default template), the converter performs the following steps:

  • Metadata Chunk Creation: We wrap the character JSON in a Base64 string and create a standardized PNG tEXt or iTXt chunk using the chara key.
  • Binary Splicing: We locate the IEND (end of file) chunk of your image and splice our new metadata chunks just before it, ensuring the image remains valid and viewable by any standard viewer while carrying the hidden data payload.
  • V2 Specification Adherence: We strictly follow the TavernAI V2 spec, ensuring that the spec and spec_version fields are correctly defined so that frontends like SillyTavern can instantly recognize and parse the card upon import.

3. Sanitizing the Definition

CharacterAI users often use specialized formatting such as {{char}}: "Dialogue" or specific brackets like (persona: ...). TavernAI and local frontends prefer a cleaner, token-agnostic format. Our conversion engine identifies these CAI-specific patterns and normalizes them into the standard {{char}} and {{user}} tokens used by the broader local AI community. This prevents "token leaking" where the AI literally types out its own metadata during a chat.

4. Privacy and Data Sovereignty

The most crucial aspect of this conversion is that it happens entirely within your browser's RAM. CharacterAI's terms of service and data collection policies are often a concern for privacy-minded creators. By moving your characters to the TavernAI format, you are physically holding the data on your hard drive. Our tool facilitates this "Reclamation of Identity" without ever seeing or storing the data you are porting.

5. Ensuring Cross-Platform Compatibility

While the goal is to target TavernAI, our generated V2 cards are intentionally designed to be "Universal." Because we adhere to the standard chara key mapping, the PNG card you generate here will also be compatible with **SillyTavern**, **Faraday (Backyard AI)**, **Agnai**, and even newer companion apps like **Voxta**. You are not just converting to one tool; you are upgrading your character to a globally recognized digital persona standard.