Download all LeetCode solved questions

Download all LeetCode solved questions

LeetCode Submission Saver


LeetCode Submission Saver is a tool that allows users to save all their accepted submissions from LeetCode to a PDF file for easy reference and offline access.

How to Use

  1. Copy the Script: Copy the code from leetcode-pdf.js This script contains the necessary functionality to extract and save accepted submissions from LeetCode.

  2. Log in to LeetCode: Visit the LeetCode website ( and log in to your account.

  3. Open Developer Tools: Right-click on the webpage and select “Inspect” or press Ctrl + Shift + I to open the Developer Tools panel.

  4. Go to Console: In the Developer Tools panel, navigate to the “Console” tab.

  5. Paste the Code: Paste the code copied from leetcode-pdf.js into the console and press Enter to execute it.

  6. Follow Instructions: Follow the on-screen instructions to complete the process, which may include authenticating with LeetCode and initiating the PDF generation.

  7. Observe the Console: After pasting the code, wait for a few moments and observe the console for any errors or messages.

  8. View the Output: Once the process is complete, the generated PDF will be available for download.


Inspired by Leetcode Downloader for Submissions by world177.


Contributions are welcome! If you have any ideas for improvements or feature requests, feel free to open an issue or submit a pull request.


This project is licensed under the MIT License.

Disclaimer: This project is not affiliated with LeetCode. Use it responsibly and in compliance with LeetCode’s terms of service.

Discover more from Coursity

Subscribe to get the latest posts to your email.


No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *