D/F DevFormat.tools
Account & Session Tools Runs locally

Card Key to Sub2API Converter

Paste raw card keys or upload text files to convert them into Sub2API import JSON, pure token lists, or CPA format. Supports Grok, Claude, OpenAI, and Gemini accounts. Everything runs locally in your browser memory — 0 network uploads.

上游平台:
支持 邮箱----密码----Token 或 卡密 1: 前缀

输出结果 · Sub2API JSON

About this converter

How card key conversion works

Paste your raw card keys (such as email----password----token or numbered format) or upload batch text files. The converter automatically extracts emails, passwords, and OAuth refresh tokens, strips noisy index prefixes and blank lines, and structures them into valid Sub2API account objects.

You can switch upstream platforms (Grok, Claude, OpenAI, Gemini) and export target formats (Sub2API JSON, clean token lists, formatted cards, or CPA JSON) with one click.

Supported platforms and data structures

Sub2API JSON output produces standard sub2api-data payloads with platform metadata, nested credentials.refresh_token, and extra credentials for effortless bulk account imports.

The pure token list extracts clean refresh tokens (one per line) for fast copy-pasting into relay gateways or command-line clients.

CPA format outputs array objects compatible with cliProxyAPI and related proxy relays.

Privacy and security guarantee

All parsing, token extraction, and JSON generation run 100% in your local browser memory. No tokens, credentials, passwords, or emails are ever sent to any remote server or logged.

Once you close or reload the browser tab, all memory is immediately wiped.

Frequently asked questions

Is my card key or token data uploaded to any server?

No. All parsing and conversion happen entirely in your browser memory. Nothing is sent to a server, stored, or logged.

What card key formats are supported?

It supports "卡密 1: email----password----token", "email----password----token", "email----token", or pure token strings. Multiple blank lines and varying separators (----, ---, |, commas) are handled automatically.

How do I import the result into Sub2API?

Choose Sub2API JSON format, click "Download JSON", then go to your Sub2API Admin Console -> Account Management -> Import, and select the generated JSON file.

Can I convert card keys for Claude, OpenAI, or Gemini as well?

Yes. Simply click the platform toggle above the input area to switch between Grok, Claude, OpenAI, and Gemini.

What should I do if a token begins with dashes like "--"?

The parser is specially designed to handle tokens starting with negative signs or dashes without breaking the email and password delimiters.