A tool to convert Google AI Studio chat files (json) to Markdown (.md) . This can be done either through a simple client-side web page or a Python script.
A hosted page is available at StripGemini.
Conversion happens on the browser (client-side), nothing is logged or tracked.
- Open
index.htmlin your web browser. - Select Files: Click on "Select Gemini Chat JSON Files" and choose one or more chat files you've downloaded from AI Studio.
- Set Options:
- Exclude User Prompts: Check this if you only want the AI's responses in the output.
- Include Thought Blocks: Check this to include the AI's internal "chain of thought" blocks.
- Convert: Click the "Convert to Markdown" button.
- Download: Your browser will automatically download the converted
.mdfiles.
The Python script provides a command-line interface to convert files locally.
- Python 3.x
- Clone this repository or download
strip_gemini.py. - Open your terminal and navigate to the directory containing the script.
python strip_gemini.py /path/to/your/chat_filepython strip_gemini.py /path/to/your/directory/--exclude-user: Exclude user messages from the output Markdown.--include-thought: Include internal thought entries from the assistant.
python strip_gemini.py --exclude-user --include-thought /path/to/your/chat_file- Go to your AI Studio History
- "Open in Drive"
- Download the chat/chats
The license does not cover the logos
This code in this project is licensed under the MIT License - see the LICENSE file for details.
Feel free to open an issue or submit a pull request if you have any suggestions or find any bugs.