Home

Awesome

Backup your ChatGPT conversations

A single client side script to backup your entire conversation history on chat.openai.com. The output is a single JSON file of your history.

You can now preview your backups by opening index.html locally

  1. Clone the repo: git clone https://github.com/abacaj/chatgpt-backup.git
  2. Open index.html in your browser
  3. Load the file from the top left

Preview

How to use

  1. Visit https://chat.openai.com
  2. Make sure you are logged in
  3. Open chrome console or firefox console (F12 on keyboard)
  4. Click on "Console" tab
  5. Copy the entire script content found in file backup.js and paste into the console input field at the bottom
  6. Press enter, script starts and will log progress to console Progress
  7. If it fails at any point you can check the console logs to see the offset it failed at
  8. You can run from any offset by adjusting the script offsets found at the bottom of the script:
const START_OFFSET = 0;
const STOP_OFFSET = -1;

How it works

This uses the same frontend API that is used by your client browser.

Benefits

Some of the key benefits:

Use cases

Notes

Contributors