Answer · Flowcharts and block diagrams
Can I turn my source code into a patent flowchart?
Yes, but convert the code into functional steps rather than drawing each line: a box says 'Validate the token', not 'if (tok == null) return'. The chart should show the logic the claims recite, with numerals the description explains. Actual code is a program listing; one of over 300 lines must go in a Computer Program Listing Appendix under 37 CFR 1.96(c). PatentDrawingsAI turns a step outline into a flowchart in minutes; each chart is one credit, from $19 for 40.

Draw this figure on a filing sheet
Upload a photo, sketch or CAD screenshot, or describe a method. You get black-and-white drawings with editable numerals on USPTO, EPO or PCT sheets. $19 for 40 drawings, one-time.
Open the drawing toolThe details
Function, not syntax
Variable names, brackets and library calls do not belong in boxes. Describe what the step achieves so the chart still reads correctly if the code is rewritten.
Keep the claimed logic visible
Branches and loops that matter to the claims become diamonds and return arrows; error handling usually does not, unless claimed.
Short listings as drawings
1.96(b) lets a listing of 300 lines or fewer (72 characters per line or fewer) be filed as drawings or in the specification; as drawings it must meet 1.84 and carry a figure numeral on each sheet.
Confidential code
Your uploads stay private to your account and are not used to train models; still, paste an outline rather than proprietary source if you can.
Common mistakes
- Pasting a screenshot of an IDE as a figure
- Using function names as the only box text
- Drawing every exception handler as its own branch
Questions people also ask
Can AI read my code and draft steps?
You can summarise the code into steps yourself or with any assistant; the flowchart tool then draws those steps. Check every step against the claims.
How detailed should the chart be?
Detailed enough to show each claimed step and how decisions branch; split very long charts into sub-figures.
Do I also need pseudocode?
Not required. Some applicants put short pseudocode in the description; that is a drafting choice.
Official sources
Related questions
More in Flowcharts and block diagrams
- How do you make a block diagram for a patent?
- How do reference numbers work in a patent block diagram?
- How do you draw a data flow diagram for a patent?
- Does a software patent need a flowchart, a block diagram or both?
- Does every method claim need a flowchart?
- How much text can go in a patent flowchart box?

Draw this figure on a filing sheet
Upload a photo, sketch or CAD screenshot, or describe a method. You get black-and-white drawings with editable numerals on USPTO, EPO or PCT sheets. $19 for 40 drawings, one-time.
Open the drawing toolFlowcharts & block diagramsThis page explains public rules and our tool. It is not legal advice; ask a registered patent attorney or agent about your application.