About the L-System Fractal Generator
Lindenmayer systems were invented by a biologist to model how plants grow. You start with a short string (the axiom) and a few rewriting rules such as F → F+F−F; each iteration replaces every symbol by its rule. A “turtle” then walks the long string: F draws forward, + and − turn, and [ ] remember and return to a branch point.
Eight classic fractals are built in — fractal plant, bush, Koch snowflake, Sierpiński triangle, dragon, Hilbert, Lévy C and Gosper curves — and you can type your own axiom, rules and angle. The page reports how many symbols and segments were generated and stops safely before your browser runs out of memory.
How to use the L-System Fractal Generator
- Choose a fractal or “My own rules”.
- Set the number of iterations (and rules, angle for custom).
- Download the SVG or PNG.
Features
- Eight classic L-systems
- Custom axiom, rules and angle
- Branching with [ ]
- Safe size limit
- Clean vector output
Supported formats
- SVG
- PNG
Frequently asked questions
Which symbols can I use?
F, G, A and B draw a line; f moves without drawing; + and − turn by the angle; | turns around; [ and ] save and restore position. Other letters are placeholders for rules.
Is my text sent anywhere?
No. Everything runs in your browser, so nothing you paste is uploaded or stored.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools