Skip to content

Flowcharts for Python

Paste a Python function and get an ISO-5807 flowchart in seconds: an elif chain becomes a cascade of diamonds, range becomes a loop, and a nested def becomes a subprogram symbol.

StartInput nn > 0Print “Positive”Print “Non-positive”EndYesNo

Flowchart from code, ISO 5807

Flowcharts from Python code

rombik parses Python via its syntax tree: functions, if/elif/else, for and while loops, try/except, recursion. Type hints and decorators don’t get in the way — only the algorithm’s logic remains, drawn to the ISO 5807 standard.

Open this example in the editor
def fizzbuzz(n):
    for i in range(1, n + 1):
        if i % 15 == 0:
            print("FizzBuzz")
        elif i % 3 == 0:
            print("Fizz")
        elif i % 5 == 0:
            print("Buzz")
        else:
            print(i)
Flowchart generated from the Python code on the left
The chart rombik builds from exactly this Python code, with ISO 5807 shapes.

How to make a flowchart from Python code

  1. Paste your code

    Copy a Python function into the editor or drag a file in.

  2. Get the chart

    The engine builds a flowchart to the standard. Toggle to a structogram if you need one.

  3. Export

    Word, Visio, draw.io, Typst, Excalidraw, SVG, PNG or PDF — native shapes, not a picture.

Your flowchart — in the format you need

No dead pictures: the chart arrives in your tool’s native format. In Word and Visio — real shapes you can edit, in Typst — clean layout code, in Excalidraw and draw.io — board objects.

Keep editing in your tool
WordVisiodraw.ioExcalidrawTypst
A finished file for print or the web
SVGPNGJPEGWebPGIFPDFHTML
How the chart looks in Word

Strictly to ISO 5807

Every code construct becomes its own symbol from the standard’s table — nothing for a reviewer to flag.

  • Terminator

    Start and end of a program or function

  • Process

    Calculations and assignments

  • Data

    Input and output

  • Decision

    A condition with two exits: if, while, switch

  • Preparation

    The header of a for loop

  • Predefined process

    A call to your own function

  • Connector

    Continues the chart elsewhere or on the next page

  • Flow line

    Arrowheads only where a line runs up or left

Common course conventions — a hexagon for for-loops, Yes/No on branches — are on by default and adjustable in settings.

Nassi-Shneiderman structogram — same code, a different view

Nested boxes with no arrows: a sequence is a stack, a branch is a condition triangle, a loop is a frame. Many universities ask for it alongside the flowchart — in rombik it’s the same code and one toggle.

What a structogram is
gradeInput scorescore ≥ 90YesNoOutput «Excellent»Output «Other»

rombik right in Telegram

Don’t want to open the site? Send the bot your code in Telegram: a ready flowchart and a .docx land right in the chat.

  • As a group

    Add the bot to your course chat — one plan for the whole chat, and everyone makes their first chart for free.

  • Solo

    DM the bot and link your account — render under your own plan.

More about the bot Telegram channel with examples

What it costs

You see the chart on screen right away, for free — with a watermark. A plan removes it from both the preview and the files you submit: by the week, month or semester, no auto-charges.

All plans
Student
$1.99 / week
Up to 300 clean exports a month, a preview without the watermark and the Telegram bot. A semester costs less.
Pro
$3.99 / week
Everything in Student + the chart editor, AI from a description, API, CLI and MCP.
Group chat
$9.99 / month
One plan for the whole Telegram chat — Group or Class: one person pays, the whole group draws.

Frequently asked questions

Does rombik understand elif chains?

Yes. Each elif becomes its own diamond attached to the previous “No” branch — exactly how the standard wants a cascade. Ten branches in a row are fine.

What about list comprehensions and lambdas?

Named lambdas (f = lambda x: …) are drawn as ordinary actions. An inline comprehension stays a single expression inside its block — unrolling it into a loop would invent structure the code doesn’t have.

Does try/except show up on the chart?

Yes: the try body, each except branch and finally become separate blocks.

What about type hints?

Toggle “No type annotations” in settings: x: int = 5 becomes x = 5. That is usually what assignments ask for.

The chart won’t draw itself. rombik will.

Paste your code — in seconds you’ll see a finished standards-compliant chart. You only pay for the clean file you submit.