Generate a Koch Triangle
Draw a Koch triangle fractal. Runs entirely in your browser, so your data never leaves your device.
Output
The result appears here as you type.
How to use Generate a Koch Triangle
- 1. Choose the iteration count. Set Iterations for how many times the triangle's base grows Koch bumps. A 4-iteration base already produces a 256-segment jagged edge along the bottom of the triangle.
- 2. Size the canvas. Set Width (px) and Height (px) to fit the triangle with its jagged base. The top two sides stay straight, so leave a bit more room along the bottom.
- 3. Pick colors and line width. Choose Line color, Background color and Line width to make the jagged coastline-like base stand out clearly against the straight upper sides.
- 4. Review the rendered triangle. The tool draws a triangle whose base is a full Koch curve while the other two sides remain straight, as an SVG. Save it once the detail level looks right.
When to use Generate a Koch Triangle
Generate a Koch Triangle applies the Koch curve construction to only one side of a triangle, leaving the other two sides straight. It isolates the classic Koch coastline effect on a single edge, making the jaggedness easier to study in isolation.
- Isolating the Koch curve for close study. Rather than three jagged sides at once like the Koch snowflake, this shows a single jagged base against two straight sides, making it easier to trace the recursive construction step by step.
- Teaching the Koch curve before the full snowflake. Introducing the Koch curve on one triangle side first, before combining three of them into the full Koch snowflake, breaks the concept into a more manageable first step.
- Illustrating coastline length paradoxes. The famous 'how long is a coastline' problem is often illustrated with a single jagged Koch edge rather than the full snowflake, since the point is about one boundary's length growing without bound.
- Designing an asymmetric geometric motif. A design that wants one jagged, organic edge against two clean straight lines can use this shape as a distinctive, mathematically grounded silhouette.
Examples
A 4-iteration Koch triangle
Output
An SVG drawing of a triangle whose base is a 256-segment Koch curve.
About the Generate a Koch Triangle tool
Generate a Koch Triangle is a free online tool that works entirely inside your web browser. Draw a Koch triangle fractal. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 234 Math utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
You can shape the output with 6 settings, including Iterations, Width (px), Height (px) and Line color, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every keystroke is handled on your own machine rather than by a remote API.
Frequently asked questions
Is Generate a Koch Triangle free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Does the generator send anything to a server?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How do I get a different result?
Run the generator again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
Can I save what the tool produces?
Yes. Use the download or copy controls in the output panel to keep the rendered result once it looks the way you want.