Chat to OpenAI Messages
Paste a chat transcript — each line prefixed with User:, Assistant: or System: — and instantly get the OpenAI-compatible messages JSON array you can send to the Chat Completions API. Multi-line messages are preserved, and the result can be copied with one click. Everything is parsed locally in your browser.
🔒 Privacy: all processing happens locally in your browser. Nothing is uploaded.
Related tools
Token Counter
Count tokens with real OpenAI tokenizers (cl100k_base / o200k_base).
TokenTokenizerGPT
LLM API Cost Calculator
Estimate any LLM API cost from token counts and your own per-1M-token prices.
LLMAPICost
JSON Schema Generator
Generate JSON Schema draft-07 from a JSON sample for function calling.
JSON SchemaFunctionOpenAI
LLM API Tester
Send a test request to any LLM API and get curl, Python, Node, Go and PowerShell code.
LLMAPITest