---
title: Export and Sharing – C4 Diagrams | Nodinite
description: Export C4 Diagrams from Nodinite as SVG, PNG, Mermaid, Structurizr DSL, PlantUML, or Draw.io, one diagram at a time or a whole Diagram Set as a ZIP. Share the diagram page with signed-in colleagues, embed the markup in Confluence, GitHub, or Azure DevOps, and automate exports.
---

# <i class="fal fa-share-nodes" aria-hidden="true"></i> Export and Sharing

Every diagram in [C4 Diagrams][What is C4 Diagrams] can be exported and shared in multiple formats. Because <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> generates every export on demand from the current relational data in the database, exports are **always current**: no stale screenshot diverges from the actual architecture.

![Export one Order-to-Cash diagram as PNG, then the whole Diagram Set as a PNG ZIP, and open the diagram from its link, animated walkthrough (7.12)][1]  
*Animated walkthrough: a diagram of the [Order-to-Cash demo][O2C Demo] downloads as PNG from **Print & Export**, the whole [Diagram Set][What is a C4 Diagram Set] downloads as a PNG ZIP from **Export**, and the diagram's address opens the same diagram for everyone with access to the set.*  

1. On a diagram page, click **Print & Export**. The menu has three groups: **Print** (**Print diagram**), [Image][Images] (**SVG**, **PNG**), and **Markup** (**Mermaid**, **Structurizr DSL**, **PlantUML**, **Draw.io**).
2. Click **PNG**. The diagram downloads as `<diagram name>.png`.
3. Click the set's name in the breadcrumb to open the [Diagram Set][Diagram Set Fundamentals].
4. Click **Export**, then **PNGs**. The **Export as PNG ZIP** dialog lists the diagrams to tick, with a **State** column (Active, Draft).
5. Click **Export ZIP**. The download is `<set name>-diagrams.zip`, with one PNG per diagram.
6. Share the diagram page's address. It opens the current diagram for everyone with access to the set.

## <i class="fal fa-diagram-project" aria-hidden="true"></i> Understanding Export and Sharing

<div class="mermaid">
flowchart LR
    Repo["fa:fa-database Diagram Set data"] --> Endpoint["fa:fa-plug Export endpoint"]
    Repo --> Viewer["fa:fa-eye Diagram page URL (signed in)"]
    Endpoint --> Img["fa:fa-image PNG / SVG"]
    Endpoint --> Md["fa:fa-code Mermaid markup"]
    Endpoint --> Src["fa:fa-file-code Structurizr DSL / PlantUML"]
    Endpoint --> Drawio["fa:fa-pen-ruler Draw.io XML"]
    Img --> Docs["fa:fa-book Confluence, SharePoint, Office"]
    Md --> Wiki["fa:fa-code-branch GitHub, Azure DevOps"]
</div>

*Every export and the diagram page render from the same live data in the [Diagram Set][What is a C4 Diagram Set], so all shared copies show the current architecture.*

## <i class="fal fa-file-export" aria-hidden="true"></i> Export Formats

This section is the one home for the export format list; other C4 pages link here. A single diagram and a whole [Diagram Set][Diagram Set Fundamentals] offer the **same six formats**.

### Single Diagram

The **Print & Export** button on the diagram page, and **Export** in the [C4 Designer][C4 Designer], open the same menu. It groups the formats under **Image** and **Markup**:

| Format | Extension | Best for |
|---|---|---|
| SVG vector | `.svg` | Print-quality, scalable embedding |
| PNG image | `.png` | Word, PowerPoint, Confluence, Teams chats |
| Mermaid | `.md` | GitHub, Azure DevOps, Notion, Mermaid Live Editor |
| Structurizr DSL | `.dsl` | Interchange with Structurizr tooling |
| PlantUML | `.puml` | Interchange with PlantUML ecosystems |
| Draw.io | `.drawio` | Import into [draw.io / diagrams.net](https://www.drawio.com/)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> for manual editing or branding |

Above the formats, the **Print** group has **Print diagram**.

The export endpoints are [Web API][] routes with the pattern `/api/C4Diagrams/{id}/export.{extension}`, for example `export.png`; the extension is `md`, `dsl`, `puml`, `drawio`, `svg`, or `png`. The OpenAPI documentation of your <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Web API lists every export route.

<sup><span class="nodinite-new-badge">New 7.12</span></sup> The [Web Client][] also serves the raw Mermaid markup at `/Repository/C4Diagrams/{id}/mermaid` (Administrators: `/Admin/C4Diagrams/{id}/mermaid`), as plain text that opens from a link or a script; see [Shareable URL][Mermaid View - Shareable URL]. Give readers that address, not `/api/…` on the Web Client, which only answers the Web Client's own pages.

### Whole Diagram Set

The **Export** menu on the Diagram Set page offers the same six formats, grouped under **Images** (**SVGs**, **PNGs**) and **Markup**. Each one downloads a **ZIP** named `<set name>-diagrams.zip`:

| Format | Download | Notes |
|---|---|---|
| SVG | ZIP of `.svg` files | Opens **Export as SVG ZIP** first: tick the diagrams to include; a **State** column shows Active or Draft |
| PNG | ZIP of `.png` files | Opens **Export as PNG ZIP** first, with the same diagram list |
| Mermaid | ZIP of `.md` files | |
| Structurizr DSL | ZIP of `.dsl` files | |
| PlantUML | ZIP of `.puml` files | |
| Draw.io | ZIP of `.drawio` files | |

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Export and <a href="https://docs.nodinite.com/repository-model/c4-diagrams/features/import/">Import</a> support different sets of formats. Import accepts four markup formats (Mermaid, PlantUML, Structurizr DSL, and Draw.io XML); export adds SVG and PNG images.</p></div>
</aside>

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p><strong>Icons in Mermaid export</strong>: a Mermaid (<code>.md</code>) export follows the rules of the Mermaid language, so only nodes whose <a href="https://docs.nodinite.com/repository-model/component-types/overview/">Component Type</a> has a Font Awesome icon keep their icon. Azure architecture icons, custom uploads, and the Mermaid logo are dropped. Use Font Awesome icons for diagrams you share as Mermaid; see <a href="https://docs.nodinite.com/repository-model/component-types/features/what-is-a-component-type/#how-icons-render-in-c4-and-mermaid">How Icons Render in C4 and Mermaid</a>.</p></div>
</aside>

The export URLs are relative to the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Web API (`https://{webapi}/`). Every export endpoint needs a signed-in user with Repository access and access to the Diagram Set ([Role-Based Access for C4 Diagram Sets][]); there is no anonymous access. In the [Web Client][], the menus call them for you.

<h2 id="connector-message-members-on-export"><i class="fal fa-arrow-right-arrow-left" aria-hidden="true"></i> Connector Flows on Export</h2>

If a static diagram shows `2 flows` or `3 flows` on one visible connector, the export behaviour depends on the target format:

| Format | What designers should expect |
|---|---|
| **PNG / SVG** | Exports the rendered diagram for presentations, reviews, and embedding. Great for visual communication, but not for round-tripping per-flow metadata |
| **Mermaid `.md`** | Expands the visible connector into one relationship line per flow, preserving each flow's display name and protocol |
| **Draw.io XML** | Exports separate edges for the stored flows so the diagram can be refined in draw.io, but [Message Type][Message Types] links remain <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>-only metadata |

In other words, the canvas may collapse several flows for readability while export keeps them explicit where the target format supports it. Optional **Message Type** bindings are used inside <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> for navigation and traceability; they are not embedded into exported markup or image files.

## <i class="fal fa-share-nodes" aria-hidden="true"></i> Sharing a C4 Diagram

<h3 id="read-only-viewer-url">Diagram Page URL</h3>

The diagram page's address, `/Repository/C4DiagramSets/{setId}/Diagrams/{id}`, is a **stable, shareable link** to the diagram. There is no separate read-only viewer: colleagues without **Modify** on the set see the same page read-only. Paste the link in:

* <i class="fal fa-comment" aria-hidden="true"></i> Teams or Slack messages
* <i class="fal fa-ticket" aria-hidden="true"></i> Jira / ServiceNow tickets
* <i class="fal fa-envelope" aria-hidden="true"></i> Email threads
* <i class="fal fa-file-lines" aria-hidden="true"></i> Architecture review documents

The page renders the latest diagram state every time it is opened. No diagram rebuilding or re-exporting required. The link needs sign-in and access to the Diagram Set, so it works for colleagues, not for anonymous readers; for those, export the diagram or copy its Mermaid source. The page's view switch shows the diagram in the [Mermaid View][], which keeps Font Awesome Component Type icons only ([why][Mermaid Export Icons]).

<h3 id="raw-mermaid-source">Copy the Mermaid Source</h3>

The **Mermaid** button on the diagram page opens the Mermaid dialog; **Copy Mermaid source** copies the Mermaid C4 markup to the clipboard. **Print & Export** > **Mermaid** downloads the same markup as a `.md` file. Use it to:

* Paste into GitHub README files (` ```mermaid ``` ` block)
* Insert into Confluence using the Mermaid macro
* Add to Azure DevOps wiki pages (native Mermaid support)
* Open in the [Mermaid Live Editor](https://mermaid.live/)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> for immediate visual editing

### Set-Based Role Permissions

Shared links respect **Diagram Set permissions**: only users whose [Roles][What is a Role?] are assigned to the set can open its diagrams, and new sets can inherit default roles through [DefaultRolesInViews][DefaultRolesInViews]. There are no per-diagram sharing flags; see [Role-Based Access for C4 Diagram Sets][] for the full model.

## <i class="fal fa-puzzle-piece" aria-hidden="true"></i> Embedding in External Tools

### GitHub / Azure DevOps / Bitbucket

Paste the Mermaid export directly into any Markdown file:

````markdown
```mermaid
C4Container
    title API-Led Architecture
    Person(user, "Web User", "Uses the portal")
    Boundary(apis, "Experience APIs") {
        Container(api, "Customer API", "ASP.NET Core", "REST API")
    }
    System_Ext(erp, "ERP", "Back-office system")
    Rel(user, api, "Calls", "HTTPS")
    Rel(api, erp, "Reads inventory", "REST")
```
````

GitHub, Azure DevOps wikis, and Bitbucket render Mermaid diagrams natively.

### Confluence

Confluence offers two options:

* **Mermaid macro** — Install the [Mermaid Diagrams for Confluence](https://marketplace.atlassian.com/apps/1224231/mermaid-diagrams-for-confluence)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> app, then paste the Mermaid source into the macro
* **PNG/SVG file** — Export the diagram and attach or upload the image. The export endpoint URL as an image source only works for viewers who are signed in to <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> with access to the set; an anonymous embed doesn't load

### SharePoint / Teams Tab

For SharePoint modern pages (Image Web Part), upload an exported PNG or SVG. A Teams tab can point at the diagram page's address; every viewer needs sign-in and access to the set.

## <i class="fal fa-robot" aria-hidden="true"></i> Automating Export

Because all export endpoints are standard GET requests, you can automate them. Authenticate as for any other [Web API][] call; with Windows authentication, for example:

```powershell
# Download the latest PNG for use in documentation pipelines
$diagramId = "your-diagram-id"

Invoke-WebRequest `
    -UseDefaultCredentials `
    -Uri "https://{webapi}/api/C4Diagrams/$diagramId/export.png" `
    -OutFile "architecture-$(Get-Date -Format 'yyyyMMdd').png"
```

The account that runs the script needs Repository access and access to the Diagram Set.

This approach enables:

* Nightly exports committed to a Git repository alongside the application code
* Automated architecture documentation in CI/CD pipelines
* Version-controlled architecture diagrams without manual screenshot management

## <i class="fal fa-download" aria-hidden="true"></i> Export from the Designer

Within the [C4 Designer][C4 Designer], the **Export dropdown** (<i class="fal fa-download" aria-hidden="true"></i>) in the toolbar provides one-click download of the current diagram in any of the six [single-diagram formats](#single-diagram), with no need to call the export endpoint separately. The Designer's **Export** has no **Print diagram**: switch to **View** and use **Print & Export**.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-pen-ruler" aria-hidden="true"></i> [C4 Designer – Interactive Canvas][C4 Designer]  
* <i class="fal fa-code" aria-hidden="true"></i> [Mermaid View – Read-Only Rendering][Mermaid View]  
* <i class="fal fa-rocket" aria-hidden="true"></i> [Creating Your First C4 Diagram][Creating Your First C4 Diagram]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-circle-question" aria-hidden="true"></i> [What is C4 Diagrams?][What is C4 Diagrams]  
* <i class="fal fa-user-shield" aria-hidden="true"></i> [Role-Based Access for C4 Diagram Sets][]  
* <i class="fal fa-book-open" aria-hidden="true"></i> [Technical Reference][]  
* <i class="fal fa-envelope" aria-hidden="true"></i> [Message Types][]  
* <i class="fal fa-shapes" aria-hidden="true"></i> [Component Types][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/Set/C4_ExportAndShare.gif

[C4 Designer]:https://docs.nodinite.com/repository-model/c4-diagrams/features/c4-designer/
[Component Types]:https://docs.nodinite.com/repository-model/component-types/overview/
[Creating Your First C4 Diagram]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/creating-your-first-c4-diagram/
[DefaultRolesInViews]:https://docs.nodinite.com/administration/settings/system-parameters/defaultrolesinviews/
[Diagram Set Fundamentals]:https://docs.nodinite.com/repository-model/c4-diagrams/features/diagram-set-fundamentals/
[Images]:https://docs.nodinite.com/repository-model/images/overview/
[Import]:https://docs.nodinite.com/repository-model/c4-diagrams/features/import/
[Mermaid Export Icons]:https://docs.nodinite.com/repository-model/component-types/features/what-is-a-component-type/#how-icons-render-in-c4-and-mermaid
[Mermaid View]:https://docs.nodinite.com/repository-model/c4-diagrams/features/mermaid-view/
[Mermaid View - Shareable URL]:https://docs.nodinite.com/repository-model/c4-diagrams/features/mermaid-view/#shareable-url
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[O2C Demo]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/overview/
[Role-Based Access for C4 Diagram Sets]:https://docs.nodinite.com/repository-model/c4-diagrams/features/role-based-access-for-c4-diagram-sets/
[Technical Reference]:https://docs.nodinite.com/repository-model/c4-diagrams/designer/reference/technical-reference/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/getting-started/overview/
[What is a C4 Diagram Set]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-a-c4-diagram-set/
[What is a Role?]:https://docs.nodinite.com/administration/access-management/roles/features/what-is-a-role/
[What is C4 Diagrams]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-c4-diagrams/