← All Tools

📝 Markdown to Chat Messages

Convert a markdown transcript with role headings into chat messages JSON for LLM APIs.

Recognizes headings like ## System, ## User, and ## Assistant.

Runs in your browser

Conversion runs locally, but transcripts often contain private names, prompts, support details, or proprietary examples. Remove sensitive conversation content before sharing payloads.

What this tool does

Markdown to Chat Messages converts Markdown-style conversation notes into structured chat message objects.

Why it is useful

It helps AI developers prepare examples, transcripts, and test fixtures for chat-completion workflows.

How it works

The browser parses headings, role markers, or separators into ordered message entries.

Best input

Use clear role labels such as system, user, and assistant before each message.

Testing tip

Validate generated message JSON before sending it to a model provider.

Privacy note

Conversion happens locally in your browser.

Important limitation

Role parsing depends on consistent formatting. Ambiguous Markdown may produce the wrong message boundaries.

Quick answers

Which roles are supported?

Common roles include system, user, and assistant, depending on the target API.

Does this call an LLM?

No. It formats text into message structure.

Common Use Cases

Turn prompt notes into API fixtures

Convert a Markdown transcript with system, user, and assistant sections into a reusable chat-completions payload.

Prepare support conversation tests

Paste cleaned role-labeled transcripts to create consistent JSON cases for routing, moderation, or summarization tests.

Share model examples with teammates

Download structured messages so teammates can replay the same example without manually rebuilding role arrays.

LLM Message Workbench workflow

Move between OpenAI, Anthropic, and Gemini message payload builders, Markdown-to-message conversion, chat transcript formatting, and JSON prompt escaping while keeping provider-schema differences explicit.

💬OpenAI Message JSON Builder🟣Anthropic Message JSON Builder💎Gemini Message JSON Builder💬Chat Transcript Formatter🧷JSON Prompt Escaper{}JSON Formatter
View all in Code →