How To: Download Notion To HTML

Notion is a widely-used productivity tool that allows individuals and teams to consolidate their thoughts, ideas, and projects in one location. Due to its user-friendly interface and powerful capabilities, Notion is a popular choice for many who want to stay on top of their work. While Notion offers cloud-based storage for all your pages, having a backup copy of your data is always a good idea in case of unforeseen circumstances.

Local Notion is a tool that enables users to back up their Notion pages to their local storage. This article will explore how you can utilize Local Notion to backup your Notion pages to your local storage.

Step 1: Install Local Notion

Local Notion is a command-line utility that allows you to download your Notion data to disk. To install Local Notion, follow the guide here.

Step 2: Create an internal Notion integration token

In order for the Local Notion CLI to access your workspace, you need to create an internal “Notion Integration token” to access your account from outside of Notion. You will need this token in Local Notion. To generate this, follow this guide.

Step 3: Create your Local Notion repository

The next step is to create a Local Notion repository on your machine to house all the Pages and Databases you want to download. You can create as many repositories as you like.

On Windows open Command Prompt, on Linux or macOS open Terminal and create a folder that will be your repository and enter it.

> cd ~
> mkdir MyNotionBackup
> cd MyNotionBackup

then initialize your Local Notion repository.

> localnotion init -k KEY_FROM_STEP_2

Step 4: Verify you can see all your items

To browse your Notion workspace, use the list --all from Local Notion.

> localnotion list --all

Listing workspace 
4676ef28-2d56-4557-a821-3fc284a8c155   P    2023-03-14 07:39   How To: Backup a Notion page to local storage
e1b6f94f-e561-409f-a2d8-4f43b85e9490   DB   2023-03-14 06:51
329b7772-09c9-4d33-ab61-135c97b508cb   P    2023-03-14 06:48   Features
d9b1c2c0-7d74-48cd-ac77-8ae947f9200d   P    2023-03-14 03:21   Local Notion Manual
1259cfa2-91da-4ed8-9bed-e3f915b91a11   P    2023-03-13 21:51   Local Notion Marketing Blurbs
58780593-f6fe-4ba5-bc4f-9b099ebc81a3   P    2023-03-13 21:18   How Local Notion Works
b8a76f00-befd-42ca-a5f4-864e1981fc39   P    2023-03-13 21:17   How Local Notion Works
5cbfc40a-823a-4c98-ba1b-ee2e8e945a4f   P    2023-03-12 21:04   Getting Started

⚠️ If you don’t find the items you want to download, it’s because you haven’t granted permissions for Local Notion to access it. Please ensure you have followed Step 2 correctly.

Step 5: Download your entire workspace

> localnotion pull --all

Local Notion will now pull all your pages and database and render them as HTML into your local repository. You can now find the items in the pages and databases subfolder of your repository.


Downloading your Notion pages to your local storage can be a simple process using Local Notion.