Black Friday race Join
Software development

C4 context diagram template

One system in the middle, three kinds of user above it and four outside systems below, shown for an invoicing platform. Every arrow says what one side does with the other.

The C4 context diagram template

What is a C4 context diagram?

The C4 model, created by Simon Brown, describes software at four zoom levels: context, containers, components and code. The context diagram is the first and widest. It shows one system as a single box, the people who use it and the other systems it depends on. Nothing inside the box is drawn.

That makes it the one architecture diagram a product manager, a new hire and an auditor can all read. This template gives you the layout and the notation, filled in for an invoicing platform that small businesses use to bill their customers.

The C4 context diagram template: three people on top, the Invoicing platform in the middle, four external systems below, and a key in the corner.
The whole board: people above, the system in the middle, neighbors below.

The people who use the system

Three boxes across the top are marked [Person]. In C4 a person is a role, not a job title or a named individual, and each one gets a sentence about what they want from the system:

  • Business owner: “Sends invoices and tracks who has paid.”
  • Accountant: “Reviews the books and exports reports.”
  • Customer: “Gets invoices by email and pays online.”

Each person is joined to the system by an arrow with a verb phrase: “Sends invoices, checks payments”, “Reviews books, exports reports”, “Views and pays invoices”. If two roles would get the same sentence and the same arrow, they are one role at this level. If you cannot write the sentence, that person may not be a user of this system at all.

Roles, not names: each person has one sentence and one labeled arrow.

The system and its neighbors

The wide box in the middle is the subject: Invoicing platform, tagged [Software system]. Its description fits on one line: it “lets small businesses send invoices, take card payments and see their cash flow”.

Below it are four gray boxes tagged [Software system, external]. They are systems the team does not own: a payment provider for card and bank payments, a bank data service with “Bank feeds from 12,000 banks”, the accounting package that holds “The accountant’s ledger”, and a service that “Sends transactional email”. The example names each by its product name, which is what you should do on your own board.

One arrow does not touch the main system at all. It runs from the email service up the right side to the Customer and reads “Delivers invoices to”. It records a fact people forget: the customer’s first contact with the platform is an email sent by somebody else’s system.

Four dependencies, each named by what the platform uses it for.

Label every arrow

Step 4 on the board is “Label every arrow”, and the Key shows the form: “Relationship: what it does [how]”. At the context level the “how” is usually left out, because the board’s own summary says to “leave out technology; that belongs in the container diagram”.

What stays is the verb. Compare “Imports bank feeds from” with a bare line between two boxes. The first tells a reader which way data flows and why the dependency exists. The second only says the two are somehow connected. The key also fixes the three box colors, for a person, a software system and an external system, so color carries meaning and is not decoration.

Three kinds of box and one kind of arrow are all the notation there is.

How to use the C4 context diagram template

The four steps are printed under the title, and they are the right order to work in:

  1. Put your system in the middle. Open the template, rename the central box and rewrite its one-line purpose. If the line needs an “and also”, you may have two systems.
  2. Add the people. Three to five roles is typical. Give each a sentence about their goal.
  3. Add the systems it talks to. Include everything you call or that calls you, even the dull ones such as email.
  4. Label every arrow with a verb phrase, and read each one aloud as a sentence: “Invoicing platform takes payments with the payment provider.”

To start from a description instead, FlowDraw AI can draft the boxes and you correct the labels.

The four steps on the board are the order to draw in.

When a context diagram is enough, and when to zoom in

Draw it at the start of a project, in a proposal, or on the first page of your documentation. It is also the fastest way to list every outside dependency before a security or compliance review.

When readers ask what is inside the box, go one level down with the C4 container diagram, which uses the same invoicing example. If you want layers and infrastructure rather than C4 notation, the system architecture template fits. To decide which people matter and how to keep them informed, a stakeholder map is the tool.

Questions about the C4 context diagram template

What is the difference between a context diagram and a container diagram?

A context diagram shows the system as one box with its users and neighbors, and no technology. A container diagram opens that box and shows the apps and data stores inside, each with its technology. They are levels one and two of the C4 model.

How many external systems should a context diagram show?

All that your system exchanges data with, as long as the page stays readable. The example has four. Past ten or so, group minor ones into a single box such as “Notification services” and list the members in a note.

Should a context diagram mention technology?

No. The template’s summary says to leave technology out. Protocols, frameworks and databases belong one level down. Here the labels describe intent, such as “Syncs the ledger to”, which stays true even if the integration is rebuilt.

Is the C4 context diagram template free?

Yes. It has 64 elements and opens on the Free plan. Use this template puts an editable copy in your workspace, and you can export the result as PNG, SVG, PDF or JSON.