LLM Conversation Exporter

Export a pasted multi-turn LLM conversation to Markdown, HTML, or print/PDF.

Ad placeholder (leaderboard)

Export an LLM chat to Markdown, HTML, or PDF

Chat UIs make it hard to get a clean, portable copy of a conversation. This tool takes a pasted transcript — or a raw message JSON array — parses it into turns, and exports it as Markdown, standalone HTML, or a print-ready page you can save to PDF. Everything happens in your browser.

How it works

The parser supports two inputs:

  1. Role-labeled text — it scans for lines beginning with a known role label (User:, Assistant:, Human:, System:, AI:) and groups the lines that follow into that turn. This matches how most people copy a chat.
  2. Message JSON — an array of { "role": "...", "content": "..." } objects (the OpenAI / Anthropic request shape). Each object becomes a turn.

Once parsed, the conversation is re-rendered into the chosen format:

  • Markdown uses **Role:** headers and preserves the body text verbatim.
  • HTML wraps each turn in a styled block with role coloring.
  • Print view opens a clean, paginated page in a new tab where you can use Save as PDF.

Tips and notes

  • If turns merge into one block, your paste is missing role labels — add them or switch to the JSON message format.
  • The HTML export is self-contained (inline styles), so you can save the file and open it anywhere without a stylesheet.
  • For PDF we deliberately use the browser’s own print engine rather than a bundled library — it is lighter, renders fonts correctly, and keeps your data fully local.
Ad placeholder (rectangle)