Mermaid C4 diagram online editor
Explain software architecture from system context to detailed components. Create the diagram in Mermaid Studio, preview it instantly, and export it when it is ready to share.
WHAT IT IS FOR
Make the important relationships clear
Explain software architecture at the right level, from people and systems to containers and components.
- Create system context diagrams
- Align teams on service boundaries
- Document architecture decisions
MERMAID EXAMPLE
Start with a working example
Copy the structure, replace the labels with your own domain, and continue in the full editor.
C4Context
title Mermaid Studio System Context
Person(user, "User", "Create and share diagrams")
System(web, "Next.js Web", "Editor and Dashboard")
System(api, "Nest API", "Project and permission management")
Rel(user, web, "Use")
Rel(web, api, "HTTPS/JSON")HOW TO START
Create your diagram in four steps
- 1Choose the architecture level you need.
- 2Name people, systems, containers, or components consistently.
- 3Add relationships and the direction of interaction.
- 4Remove details that do not support the current decision.
WRITING TIPS
Keep the diagram useful
Choose one level of detail per diagram.
Name people, systems, containers, and components consistently.
FAQ
Frequently asked questions
What is a C4 diagram?+
C4 is a way to describe software architecture through context, container, component, and code-level views.
Which C4 level should I start with?+
Start with the system context when the audience needs boundaries and neighboring systems before adding implementation detail.
TEMPLATES
Start from a related template
RELATED DIAGRAMS
Explore another Mermaid diagram
Mermaid flowchart
Visualize processes, decisions, and system flows with connected nodes.
Read the guideMermaid sequence diagram
Map requests, responses, and asynchronous events between services.
Read the guideMermaid class diagram
Design domain objects, properties, methods, inheritance, and relationships.
Read the guideMermaid ER diagram
Document database entities, fields, relationships, and cardinality.
Read the guideMermaid state diagram
Show how an object or workflow changes state in response to events.
Read the guideMermaid mindmap
Organize ideas and subtopics hierarchically around a central theme.
Read the guideReady to make a C4?
Open the editor with a working example and adapt it to your project.
Start in Mermaid Studio