Koch curve generator

World's simplest math tool

Free online fractal Koch curve generator. Just press a button and you'll automatically get a Koch snowflake. There are no ads, popups or nonsense, just an awesome Koch curve generator. Press a button, get a snowflake. Created by mathematicians for mathematicians.

i've redesigned my blog!catonmat

Super exciting news! I just redesigned my catonmat.net blog. Now it has a new minimalistic design and is entirely powered by alien technology. Check it out!

A link to this tool, including input, options and all chained tools.

Koch snowflake

Can't convert.

An error has occured.

Chain with...

Remove chain

Save as...

Copy to clipboard

Download

Export to Pastebin

Remove no tools?

This tool cannot be chained.

Koch curve generator options

Snowflake Curve's Options

WidthWidth of the snowflake.

HeightHeight of the snowflake.

IterationsNumber of Koch curve iterations.

Star Colors

Background colorColor around the star.

Internal color.Color inside the star.

Line colorStar's border color.

Curve

Line WidthWidth of the border.

PaddingAdd extra distance between the
fractal and the frame.

Koch curve generator toolWhat is a Koch curve generator?

This tool draws Koch curves that look like snowflakes and stars. The Koch curve is one of the earliest known fractals. It's a typical geometric fractal that constructed by starting with an equilateral triangle, then recursively adding another equilateral triangle pointing outwrads in the middle of each side of the starting triangle. With a large number of such iterations the starting triangle becomes a snowflake. Because of its shape it's also known as Koch island. When using this tool to draw Koch fractals, you can select color inside and around snowflakes and also the color of the curve itself. You can set curve dimensions (width and height) and choose the thickness of the star. You can also change how many iterations to evolve the curve for. Mathabulous!

Koch curve generator examplesClick to use

Draw a Koch Star with a Thick Border

This example constructs a Koch curve with curve width of 20px. As there are just 3 iterations it looks like a star.

Required options

These options will be used automatically if you select this example.

WidthWidth of the snowflake.

HeightHeight of the snowflake.

IterationsNumber of Koch curve iterations.

Background colorColor around the star.

Internal color.Color inside the star.

Line colorStar's border color.

Line WidthWidth of the border.

PaddingAdd extra distance between the
fractal and the frame.

Generate a 4th Order Koch Curve

This example builds a Koch snowflake with 4 generations using white and blue color tones. Line width is set to 5px and padding is set to 10px.

Required options

These options will be used automatically if you select this example.

WidthWidth of the snowflake.

HeightHeight of the snowflake.

IterationsNumber of Koch curve iterations.

Background colorColor around the star.

Internal color.Color inside the star.

Line colorStar's border color.

Line WidthWidth of the border.

PaddingAdd extra distance between the
fractal and the frame.

Generate a Koch Island

This example uses dark-redish-brown background and yellow foreground to draw a fabulous looking fractal curve. Draws it on a 500x500 square with padding 10px using 5 iterations. As iterations increase the Koch curve starts to look like an island.

Required options

These options will be used automatically if you select this example.

WidthWidth of the snowflake.

HeightHeight of the snowflake.

IterationsNumber of Koch curve iterations.

Background colorColor around the star.

Internal color.Color inside the star.

Line colorStar's border color.

Line WidthWidth of the border.

PaddingAdd extra distance between the
fractal and the frame.

Pro tipsMaster online math tools

You can pass options to this tool using their codes as query arguments and it will automatically compute output. To get the code of an option, just hover over its icon. Here's how to type it in your browser's address bar. Click to try!

We're Browserling — a friendly and fun cross-browser testing company powered by alien technology. At Browserling we love to make developers' lives easier, so we created this collection of online math tools. Unlike many other tools, we made our tools free, without ads, and with the simplest possible user interface. Our online math tools are actually powered by our programming tools that we created over the last couple of years. Check them out!

Secret message

If you love our tools, then we love you, too! Use coupon code MATHTOOLLING to get a discount at Browserling.

Privacy Policywe don't log data!

All conversions and calculations are done in your browser using JavaScript. We don't send a single bit about your input data to our servers. There is no server-side processing at all. We use Google Analytics and StatCounter for site usage analytics. Your IP address is saved on our web server, but it's not associated with any personally identifiable information. We don't use cookies and don't store session information in cookies. We use your browser's local storage to save tools' input. It stays on your computer.

Terms of Servicethe legal stuff

By using Online Math Tools you agree to our Terms of Service. TLDR: You don't need an account to use our tools. All tools are free of charge and you can use them as much as you want. You can't do illegal or shady things with our tools. We may block your access to tools, if we find out you're doing something bad. We're not liable for your actions and we offer no warranty. We may revise our terms at any time.