---
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.
---

# :fa-share-nodes: Export and Sharing

Every diagram in [C4 Diagrams][What is C4 Diagrams] can be exported and shared in multiple formats. Because :Nodinite: 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.

## :fa-diagram-project: 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.*

## :fa-file-export: 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>:fa-arrow-up-right-from-square:</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 :Nodinite: Web API lists every export route.

:new7.12: 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 | |

>[!NOTE]
>Export and [Import][] support different sets of formats. Import accepts four markup formats (Mermaid, PlantUML, Structurizr DSL, and Draw.io XML); export adds SVG and PNG images.

>[!TIP]
>**Icons in Mermaid export**: a Mermaid (`.md`) export follows the rules of the Mermaid language, so only nodes whose [Component Type][Component Types] 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 [How Icons Render in C4 and Mermaid][Mermaid Export Icons].

The export URLs are relative to the :Nodinite: 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.

## :fa-arrow-right-arrow-left: Connector Flows on Export {#connector-message-members-on-export}

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 :Nodinite:-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 :Nodinite: for navigation and traceability; they are not embedded into exported markup or image files.

## :fa-share-nodes: Sharing a C4 Diagram

### Diagram Page URL {#read-only-viewer-url}

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:

* :fa-comment: Teams or Slack messages
* :fa-ticket: Jira / ServiceNow tickets
* :fa-envelope: Email threads
* :fa-file-lines: 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]).

### Copy the Mermaid Source {#raw-mermaid-source}

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>:fa-arrow-up-right-from-square:</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.

## :fa-puzzle-piece: 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>:fa-arrow-up-right-from-square:</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 :Nodinite: 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.

## :fa-robot: 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

## :fa-download: Export from the Designer

Within the [C4 Designer][C4 Designer], the **Export dropdown** (:fa-download:) 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**.

## :fa-hand-point-right: Next Steps

* :fa-pen-ruler: [C4 Designer – Interactive Canvas][C4 Designer]  
* :fa-code: [Mermaid View – Read-Only Rendering][Mermaid View]  
* :fa-rocket: [Creating Your First C4 Diagram][Creating Your First C4 Diagram]  

## :fa-link-horizontal: Related Topics

* :fa-circle-question: [What is C4 Diagrams?][What is C4 Diagrams]  
* :fa-user-shield: [Role-Based Access for C4 Diagram Sets][]  
* :fa-book-open: [Technical Reference][]  
* :fa-envelope: [Message Types][]  
* :fa-shapes: [Component Types][]  

[1]:{ndm}/Documentation%20Pictures/IM/WebClient/Repository/C4/Set/C4_ExportAndShare.gif

[C4 Designer]:{ndr}/Repository%20Model/C4%20Diagrams/Features/C4%20Designer.md
[Component Types]:{ndr}/Repository%20Model/Component%20Types/Overview.md
[Creating Your First C4 Diagram]:{ndr}/Repository%20Model/C4%20Diagrams/Getting%20Started/Creating%20Your%20First%20C4%20Diagram.md
[DefaultRolesInViews]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DefaultRolesInViews.md
[Diagram Set Fundamentals]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Diagram%20Set%20Fundamentals.md
[Images]:{ndr}/Repository%20Model/Images/Overview.md
[Import]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Import.md
[Mermaid Export Icons]:{ndr}/Repository%20Model/Component%20Types/Features/What%20is%20a%20Component%20Type.md#how-icons-render-in-c4-and-mermaid
[Mermaid View]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Mermaid%20View.md
[Mermaid View - Shareable URL]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Mermaid%20View.md#shareable-url
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[O2C Demo]:{ndr}/Repository%20Model/BPMs/Examples/Order-to-Cash/Overview.md
[Role-Based Access for C4 Diagram Sets]:{ndr}/Repository%20Model/C4%20Diagrams/Features/Role-Based%20Access%20for%20C4%20Diagram%20Sets.md
[Technical Reference]:{ndr}/Repository%20Model/C4%20Diagrams/Designer/Reference/Technical%20Reference.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Getting%20Started/Overview.md
[What is a C4 Diagram Set]:{ndr}/Repository%20Model/C4%20Diagrams/Features/What%20is%20a%20C4%20Diagram%20Set.md
[What is a Role?]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[What is C4 Diagrams]:{ndr}/Repository%20Model/C4%20Diagrams/Features/What%20is%20C4%20Diagrams.md