How to export a Google AI Studio chat

In Google AI Studio, open the 'Get code' panel above a chat to export the conversation as a code snippet (Python, Node, or REST) that includes the full message history as structured data, or use the export/download icon if present to save the prompt as JSON. Neither produces a readable document directly; convert the exported JSON into a document to read it as a transcript.

Short answer

In Google AI Studio, open the 'Get code' panel above a chat to export the conversation as a code snippet (Python, Node, or REST) that includes the full message history as structured data, or use the export/download icon if present to save the prompt as JSON. Neither produces a readable document directly; convert the exported JSON into a document to read it as a transcript.

Step by step

  1. Open the chat or prompt you built: Google AI Studio organizes work around individual prompts, which can be chat-style multi-turn conversations or single-shot completions.
  2. Use 'Get code' for the full structured history: The Get code button above the prompt panel generates a code snippet in your chosen language (Python, Node.js, or cURL/REST) that embeds the entire conversation history as structured message objects, which is genuinely the most complete export of the actual message content.
  3. Or use the download/export icon for raw JSON: Some prompt types show a save or export icon that saves the prompt configuration and history as a JSON file directly, without wrapping it in code.
  4. Recognize this is developer-oriented, not a transcript: Both outputs are meant for developers integrating the same conversation into their own application via the API, not for reading. The message content is there, but it's nested inside code syntax or JSON structure.
  5. Convert the export into a readable document: Extract the message history from the code snippet or JSON and convert it into Word, PDF, or Markdown to get an actual readable transcript.

Google AI Studio, the developer-facing tool (formerly MakerSuite) for testing prompts against Gemini models, exports conversations very differently from consumer chat apps. Its export is built for developers who want to reuse the exact conversation programmatically, not for someone who wants a readable copy of what was discussed.

The "Get code" export

Above the chat or prompt panel, the Get Code button generates a ready-to-run code snippet, in Python, Node.js, or a raw REST/cURL request, that reproduces your exact conversation via the Gemini API. Critically, this snippet includes the full message history as structured data (a list of role/content pairs), which means the entire conversation content is genuinely present in the export. It's just wrapped in code syntax rather than presented as a document.

This is a meaningfully more complete export than what most competing "AI playground" tools offer, since it's not just the current prompt but the accumulated multi-turn history.

The JSON/download option

Depending on the prompt type (chat prompt, structured prompt, or freeform), AI Studio sometimes shows a save or export icon that downloads the prompt, including its history and any system instructions or configuration (temperature, safety settings, etc.), as a JSON file. This is more directly machine-readable than the code snippet but still not something you'd hand someone to read.

Why there's no "export as PDF" button

AI Studio is explicitly a developer and prototyping tool, not a consumer chat product, so its target user wants to take the conversation into their own codebase, not print it out. There is no equivalent of ChatGPT's or Claude's consumer-facing export options, and that's a deliberate product distinction rather than an oversight.

Getting a readable transcript

To turn either export into something readable:

  1. Get the code snippet or JSON file using either method above
  2. Extract the message history, the list of user and model turns, from within the code or JSON structure
  3. Convert that content into Word, PDF, or Markdown using ChatExports, which produces a normal document with speaker labels, formatted code blocks, and a proper reading order

This matters more for AI Studio than most platforms, since its export is uniquely aimed at reuse-by-API rather than human reading, and without this conversion step, a saved AI Studio session is genuinely difficult for a non-developer to review.

When you're just testing, not archiving

If you're using AI Studio for quick prompt iteration rather than building something you need to keep, a simpler option is copying the response text directly from the chat panel, which works fine for grabbing a single useful output without going through the code export at all.

Frequently asked questions

Does Google AI Studio have a PDF or Word export button?

No. AI Studio's export options are the 'Get code' snippet and, for some prompt types, a JSON download, both aimed at developers reusing the conversation via the API rather than reading it as a document.

Is the full conversation actually included in the Get Code export?

Yes. The generated code snippet includes the complete message history as structured role/content data, so the conversation content is genuinely complete, just embedded in code syntax.

How do I turn an AI Studio export into something readable?

Extract the message history from the code snippet or JSON file and convert it using a tool like ChatExports, which produces a proper document with speaker labels and formatted code blocks.

Why is Google AI Studio's export so different from Gemini's consumer app?

AI Studio is a developer tool for prototyping against the Gemini API, aimed at people integrating conversations into their own applications, while Gemini's consumer app is aimed at end users who want to read and keep their chats.

Related guides