Data flow diagram

Updated

A data flow diagram (DFD) is a diagram that shows how data moves through a system: where it comes from, which processes change it, where it is stored and where it goes. It describes the movement of information, not the order of steps or the timing, which makes it useful for understanding a system before deciding how to build or change it.

Data flow diagram symbols

A DFD uses four symbols:

  • External entity: a person, organization or system outside the one being described, which sends or receives data. Drawn as a rectangle.

  • Process: an activity that changes incoming data into outgoing data, such as "Validate order". Drawn as a circle or rounded rectangle.

  • Data store: a place where data rests, such as a database or a file. Drawn as an open ended rectangle or two parallel lines.

  • Data flow: a labeled arrow that shows data moving between the other three.

The two common notations, Yourdon and DeMarco and Gane and Sarson, differ only in the shapes they use.

Levels of a data flow diagram

  • Context diagram (level 0): the whole system as one process, with the external entities around it.

  • Level 1: the single process is broken into its main sub processes and data stores.

  • Level 2 and below: each level 1 process is expanded again where more detail is needed.

Every data flow entering or leaving a process must also appear on the diagram that expands it. This rule is called balancing.

When to use a data flow diagram

Use a DFD to analyze an existing system, define the scope of a new one, document how personal data is handled for a privacy or security review, or explain an information process to stakeholders who do not need the technical detail.

Example

A library draws a context diagram for its lending system. Members send loan requests and receive due dates. The level 1 diagram splits the system into "Check membership", "Record loan" and "Send reminders", with data stores for Members, Books and Loans.

Data flow diagram vs flowchart

A flowchart shows the sequence of steps and decisions. A DFD has no decisions or loops and shows only what data moves where. To describe the structure of the stored data, use an ER diagram. To show who performs each step, use a swimlane diagram. For a longer guide with rules and examples, read What is a data flow diagram.

Data flow diagrams in MockFlow

The AI data flow diagram generator turns a description of a system into a DFD on a MockFlow board that your team can edit together. Ready made starting points include the level 0 and level 1 data flow diagram templates. See also the whiteboard for developers.

MockFlow

Turn ideas into plans on one board.

No account needed
mockflow.com/new

Open a blank board in one click. Boards last 24 hours, so sign up to keep one.

MCPBrainstorm with MockFlow MCP

Add MockFlow as an MCP connector in Claude, Cursor, or any MCP-compatible AI assistant to generate flowcharts, mindmaps, architecture diagrams, and 16 types of visualizations.

Desktop App MCP Powerful
CLI Web MCP Developer
Web MCP Easiest

Built into the MockFlow Desktop App. AI creates visuals directly on your open canvas — no URLs, no waiting.

1
Open Desktop App → open a MockFlow project
2
In Claude Code / Cursor, run:
claude mcp add --transport http -s user mockflow-ideaboard http://localhost:21193/mcp
3
Ask: "Create a flowchart for..."

Best for: Designers, product teams, daily MockFlow users.

Download Desktop App →

Install from npm, log in via browser (OAuth), and boards are saved to your MockFlow account.

1
npm install -g @mockflow/ideaboard-mcp
2
mockflow-ideaboard-mcp login
3
mockflow-ideaboard-mcp

Best for: Developers using Claude Code, Cursor, or VS Code Copilot.

npm Package →

Add MockFlow as a connector in Claude.ai or ChatGPT. No installation. A new board is created and you get a shareable URL.

1
Open Claude.ai → Settings → Connectors
2
Paste this URL, then click Connect and sign in to MockFlow: https://app.mockflow.com/ideaboard/connector/mcp
3
Ask Claude to create a flowchart — done!

ChatGPT: use https://app.mockflow.com/ideaboard/mcp and save its boards to your account to keep them

Best for: Managers, marketers, anyone using Claude.ai or ChatGPT in the browser.

Welcome back
Don't have an account? Sign up

Faster ways in

Sign in with an account you already use.