To export your Gemini workspace data before switching to Claude Team, use Google Takeout at takeout.google.com to download your conversation history, custom Gems, and settings as JSON files. Back up your configuration, parse the exported JSON programmatically if needed, and document your custom instructions and prompts so you can recreate them in Claude. The process takes minutes to set up, though Google may need hours to prepare large archives.
Why Export Your Gemini Workspace Data
Your Gemini workspace contains more than just chat logs. Depending on your subscription level, you have accumulated conversation threads, custom instructions, project-specific contexts, and possibly integrated code or documents. Before you cancel your subscription or reduce access, retrieving this data ensures continuity in your work.
Developers and power users especially benefit from exporting conversation history because those threads often contain debugging sessions, architectural discussions, and code generation that you may want to reference later.
What Data You Can Export
Google Gemini provides several data export options depending on your workspace type:
Consumer Accounts (gemini.google.com):
- Conversation history from the web interface
- Saved chats and bookmarks
- Custom Gems (customized AI behaviors)
Google Workspace / Google One:
- All consumer data plus
- Team conversation history
- Shared prompts and instructions
- Organization-wide settings
The export process uses Google Takeout, which provides your data in JSON format. This means your exported conversations remain readable and searchable.
Step-by-Step Export Process
Step 1: Access Google Takeout
Navigate to Google Takeout and sign in with the account connected to your Gemini subscription. You will see a list of Google services that store your data.
Step 2: Select Gemini Data
Scroll through the service list and find “Gemini”. If you do not see it explicitly listed, check under “Other Google services” or “Cloud Storage” depending on how your data is stored. Google periodically updates which products appear in Takeout, so if Gemini is not visible, check the “Select all” option for a complete archive.
# After downloading, your Takeout archive structure looks like:
# takeout-YYYYMMDD/
# └── Google Products/
# └── Gemini/
# ├── conversations.json
# ├── gems.json
# └── settings.json
Step 3: Choose Export Format and Frequency
Select your preferred delivery method. You can choose to receive a download link via email, add files to Google Drive, or send to cloud storage providers. Decide between a one-time export or scheduled exports if you want ongoing backups.
Step 4: Download and Verify
Once Google prepares your archive (this may take minutes to hours depending on data volume), download the ZIP file. Verify the contents include what you expect before deleting from your account.
Extracting Conversations Programmatically
If you have large conversation histories or want to process them further, you can parse the exported JSON:
import json
from pathlib import Path
def extract_gemini_conversations(takeout_path: str) -> list[dict]:
"""Parse exported Gemini conversations from Google Takeout."""
gemini_path = Path(takeout_path) / "Google Products" / "Gemini"
conversations = []
# Load the main conversations file
conversations_file = gemini_path / "conversations.json"
if conversations_file.exists():
with open(conversations_file, 'r', encoding='utf-8') as f:
data = json.load(f)
conversations = data.get('conversations', [])
return conversations
def format_for_readability(conversations: list[dict]) -> str:
"""Format conversations for easy reading or import."""
output = []
for conv in conversations:
title = conv.get('title', 'Untitled')
messages = conv.get('messages', [])
output.append(f"\n## {title}\n")
for msg in messages:
role = msg.get('role', 'unknown')
content = msg.get('content', '')
timestamp = msg.get('timestamp', '')
output.append(f"[{role.upper()}] {timestamp}")
output.append(f"{content}\n")
return "\n".join(output)
# Usage example
if __name__ == "__main__":
convs = extract_gemini_conversations("/path/to/takeout")
formatted = format_for_readability(convs)
with open("gemini_conversations.md", "w") as f:
f.write(formatted)
This script converts your JSON export into markdown, making it easy to search through past conversations or import them into other tools.
Exporting Custom Gems and Instructions
If you have created custom Gems (Gemini’s version of customized AI behaviors), export those separately:
def export_gems(gemini_path: str) -> dict:
"""Extract custom Gem configurations."""
gems_file = Path(gemini_path) / "gems.json"
if gems_file.exists():
with open(gems_file, 'r') as f:
return json.load(f)
return {}
# Example output structure
# {
# "gems": [
# {
# "name": "Code Reviewer",
# "description": "Reviews code for bugs and style issues",
# "instructions": "You are a senior developer...",
# "tools": ["web_search", "code_execution"]
# }
# ]
# }
Document these custom instructions manually, as they represent valuable workflows you may want to recreate in Claude.
Preserving Context for Claude Migration
When switching to Claude Team, you cannot directly import Gemini conversations. However, you can preserve the value:
- Convert conversations to markdown using the script above
- Create a context document summarizing key projects and decisions
- Document custom prompts that worked well in Gemini
- Export code snippets that Gemini helped generate
# Migration Context - Gemini to Claude
## Projects Worked On
- Project A: E-commerce API with Python/FastAPI
- Project B: React dashboard with TypeScript
## Useful Custom Instructions
- "Explain code like I'm a junior developer"
- "Focus on performance and scalability"
## Recurring Patterns
- Frequently asked about Docker configurations
- Used Gemini for SQL query optimization
What Cannot Be Exported
Some Gemini data remains inaccessible:
- Real-time collaboration history (ephemeral sessions)
- Workspace-specific analytics and usage data
- Internal Google Workspace admin settings
- Third-party integrations unless separately exported
Check Google’s official Takeout documentation for the most current export capabilities.
Best Practices Before Switching
Before canceling your Gemini subscription:
- Download all exports - Verify you have complete archives
- Screenshot saved settings - Some configurations may not appear in exports
- Export separately - Use both Takeout and manual copy-paste for critical data
- Test restoration - Confirm you can read and search your exported data
- Keep local backups - Store exports in multiple locations
Conclusion
Exporting your Gemini workspace data is straightforward through Google Takeout, though the process requires attention to which products are included in your archive. For developers, parsing the JSON exports programmatically provides the most value, allowing you to search, reference, and migrate valuable conversation context. Take time to export custom Gems and instructions before switching, as these represent accumulated knowledge that would otherwise be lost.
Related Reading
Built by theluckystrike — More at zovo.one