Perplexity Exporter is a powerful JavaScript utility designed to help users download their entire Perplexity.ai chat history into a single, well-formatted Markdown file. It automates the process of navigating through your history, extracting conversations, and converting them into clean Markdown, including support for tables, code blocks, and citations.
- Full History Export: Automatically scrolls through your sidebar to find and export every thread.
- Clean Markdown Conversion: Converts HTML responses into readable Markdown (headers, lists, tables, blockquotes, etc.).
- Smart Citation Handling: Supports three styles for citations:
footnotes,inline, ornone. - Automated Navigation: Automatically clicks through each thread and waits for content to load.
- Progress UI: Includes a real-time overlay showing export progress and a cancel button.
- Local Backup: Keeps your research and AI interactions safe on your own machine.
Since this is a client-side script, you can run it directly in your browser:
- Open Perplexity: Navigate to perplexity.ai and ensure you are logged in.
- Open Developer Tools: Press
F12orCmd + Option + I(Mac) /Ctrl + Shift + I(Windows/Linux) to open the browser's Developer Tools. - Go to Console: Click on the Console tab.
- Paste & Run: Copy the entire content of
perplexity_exporter.js, paste it into the console, and pressEnter. - Wait: The script will start scrolling your sidebar and then visit each thread. You will see a progress overlay in the top-right corner.
- Download: Once finished, a
.mdfile will be automatically generated and downloaded to your computer.
Tip: You can also save this script as a Bookmarklet for even easier access in the future.
You can edit the constants at the top of perplexity_exporter.js to customize the behavior:
CITATION_STYLE: Set to'footnotes','inline', or'none'.THREAD_LOAD_WAIT: Increase this if you have a slow internet connection.
Sharing this tool on GitHub can help a wide variety of people:
- Researchers & Writers: Perplexity is often used for deep research. Having a local Markdown copy allows for easy searching across all past research using tools like
grepor desktop search. - Personal Knowledge Management (PKM): Users of Obsidian, Notion, or Roam Research can easily import their AI conversations into their second brains.
- Data Portability: It gives users ownership of their data. Instead of relying on the platform to host history, users can maintain their own archives.
- Offline Access: Once exported, your entire history is available offline for reading and reference.
- Audit & Compliance: For professional use, it provides a way to document AI-assisted workflows and source citations.
This script is a third-party tool and is not affiliated with Perplexity.ai. It is provided for personal use. Please ensure you comply with Perplexity's terms of service while using this tool.
Exported with ❤️ for the AI community.