> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.pdfgeneratorapi.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to copy a template between workspaces?

You can easily copy a template from one workspace to another by exporting its configuration and then importing it. This process creates a new template in the destination workspace, which is perfect for sharing templates across different organizations or projects.
---

### Export the Template

First, you need to export the template's configuration as a `.json` file. This action saves the entire template structure to your local computer. There are two ways to do this:
---

#### 1. From the Template Editor

1.  Open the template you wish to copy in the **Editor**.
2.  In the top menu bar, click **File**.
3.  Select **Export** from the dropdown menu.

![Exporting a template from the File menu in the Template Editor.](https://storage.crisp.chat/users/helpdesk/website/-/1/1/e/0/11e0e518fc48ce00/screenshot-2025-04-11-at-15403_7drxti.png)
---

#### 2. From the Templates Page

1.  In the **Templates** section, find the template you want to copy.
2.  Click the **three-dot menu (...)** on the right.
3.  Select **Export** from the dropdown menu.

![Exporting a template from the Templates section in the PDF Generator API app.](https://storage.crisp.chat/users/helpdesk/website/-/1/1/e/0/11e0e518fc48ce00/screenshot-2025-04-11-at-15382_rwnj57.png)
---

### Import the Template

#### 1. From the Templates Editor

Once you have the `.json` file, you can import it into any workspace to create a new template.

1.  Navigate to the workspace where you want to add the template.
2.  Open the **Template Editor**.
3.  In the top menu bar, click **File** and select **Import**.
4.  Choose the `.json` file you previously exported.

A new template will be created instantly with the imported configuration.

![Importing a template from the File menu in the Template Editor.](https://storage.crisp.chat/users/helpdesk/website/-/1/1/e/0/11e0e518fc48ce00/screenshot-2025-04-11-at-15470_1go2g0v.png)

| You can also choose to override an existing template. When you select this option, a drop-down menu will appear, allowing you to choose an existing template to override.

![Override an existing template (optional)](https://storage.crisp.chat/users/helpdesk/website/-/1/1/e/0/11e0e518fc48ce00/image_1hcvfs.png)
---

#### 2. From the Templates Page

The same  `.json` file can be imported from templates page throughout IMPORT FROM DEFINITION button. 

![Importing a Template from the Templates Page](https://storage.crisp.chat/users/helpdesk/website/-/1/1/e/0/11e0e518fc48ce00/screenshot-2025-09-11-at-14223_11peca9.png)


| **💡 Pro-Tip:** You can also use this import function to load the free example templates from our website. Simply download any template from our [Free Templates Gallery](https://pdfgeneratorapi.com/templates/free-templates) and import the `.json` file.
---
### Related articles you may find helpful

* [Common use-cases of the Expression language](https://support.pdfgeneratorapi.com/en/article/common-use-cases-of-the-expression-language-1seclga/)
* [How to share templates with other workspaces?](/en/article/how-to-share-templates-with-other-workspaces-1hq1m2f/)
* [Image Component](https://support.pdfgeneratorapi.com/en/article/image-component-149d22k/)





