Mandelbrot Set Generator

Draw the Mandelbrot set, zoom into it with the mouse and download the image.

This is a free online Mandelbrot set generator. Move the mouse wheel over the image to zoom in and out exactly where the pointer is, drag the image to move around, and download what you see as a PNG image of any resolution, up to 4K.

The Mandelbrot set is the most famous fractal ever drawn: a shape with a finite area and an infinitely long border, where every magnification reveals new spirals, filaments and tiny copies of the whole set. This tool draws it with smooth coloring, eight color palettes, and a zoom that goes down to a magnification of about one trillion times.

Everything runs directly in your browser, on your own processor. No image is uploaded to a server, and nothing needs to be installed.

Fractal options

Position
Use the mouse wheel over the image to zoom where the pointer is.
Detail
More iterations show more detail near the border of the set, and take longer to draw.
Colors
How many times the palette repeats every 256 iterations.
Rotates the palette, without changing the shape of the color bands.
Image size
Image details:
image: 800 x 600 px
magnification: 1.00 x
size of a pixel: 4.33e-3
drawn in: 0 ms

Use the mouse wheel over the image to zoom in and out where the pointer is, and drag the image to move it. On a phone, use one finger to move the image and two fingers to zoom.

How to generate a Mandelbrot set image?

To create and save your own view of the Mandelbrot set, follow these steps:

  1. Pick a place to explore - Use the buttons above the image to jump straight to the most famous regions of the set: the Seahorse Valley, the Elephant Valley, the Triple Spiral and a mini Mandelbrot. They are a good starting point, and you can zoom away from there.
  2. Zoom with the mouse wheel - Every notch of the wheel magnifies the image 1.3 times around the pointer, so the detail you are aiming at stays under the cursor. On a phone, put two fingers on the image and pinch.
  3. Drag the image to move - Hold the mouse button and drag, or slide one finger on a touch screen. The image follows immediately and is calculated again when you release it.
  4. Raise the iterations if the image turns flat - The deeper you zoom, the more iterations the border needs. "Increase the iterations when zooming in" does it automatically, and you can always type a higher value yourself.
  5. Choose the colors - Change the palette, the number of color cycles and the color offset until the bands look the way you want. The inside of the set is painted with a single color, which you can change too.
  6. Choose the resolution - Select one of the common resolutions, or type any width and height. The image is drawn again at the new size, with the same view.
  7. Download the image - Click "Download PNG image" to save exactly what you see on the canvas.

Write down the center and the zoom of a view you like: typing the same three numbers again brings you back to exactly the same place.

Settings

Below are the parameters you can configure to draw the Mandelbrot set.

FieldDescription
Center (real part)The real part of the complex number at the center of the image, which is the horizontal position on the complex plane. The whole set lies between -2.1 and 0.6.
Center (imaginary part)The imaginary part of the complex number at the center of the image, which is the vertical position. The set is symmetric around the horizontal axis, so a positive value and its negative show mirrored images.
ZoomThe magnification of the view. A zoom of 1 shows the whole set, and a zoom of 1000 shows a region a thousand times smaller. The mouse wheel changes this value.
Maximum iterationsHow many times the formula is applied to each pixel before deciding that the point belongs to the set. Low values paint thick, smooth borders; high values reveal the thin filaments that connect the parts of the set, and take longer to draw.
Increase the iterations when zooming inRaises the number of iterations automatically as the magnification grows, which keeps the border detailed without having to adjust it by hand.
PaletteThe sequence of colors used to paint the points outside the set: Classic, Fire, Ice, Electric, Sunset, Rainbow, Forest or Grayscale.
Color cyclesHow many times the palette repeats every 256 iterations. A low value creates wide, soft bands; a high value creates many thin bands that follow the shape of the border closely.
Color offsetRotates the palette without changing the shape of the bands, which is an easy way to find a color scheme you like.
Smooth coloringUses the fractional iteration count instead of the whole number, which removes the visible steps between the color bands and produces a continuous gradient.
Invert the paletteReads the palette backwards, so the colors near the border of the set become the colors far from it.
Color of the inside of the setThe color of the points that never escape, which form the black body of the set in the classic images.
Resolution / Width / HeightThe size of the generated image in pixels. Choose one of the common display resolutions, or type any width and height.

What is the Mandelbrot set?

The Mandelbrot set is the set of complex numbers c for which the sequence

z0 = 0 and zn+1 = zn² + c

never runs away to infinity. Each pixel of the image is one value of c: the horizontal position is the real part and the vertical position is the imaginary part. The formula is applied over and over to that pixel, and as soon as the value gets farther than a fixed distance from the origin it is certain that it will keep growing forever, so the point is not in the set. The number of steps it took to run away is what chooses the color of the pixel, and that is why the colored bands outside the set look like contour lines around it.

Points that survive all the iterations are considered part of the set and are painted with a single color. This is only an approximation: with more iterations, some of those points would eventually escape. That is exactly why zooming deeper requires more iterations, and why a region can look like a solid blob until you raise them.

The set is named after Benoit Mandelbrot, who worked at IBM and published the first computer pictures of it in 1980. The shape had been described earlier, in the work of Pierre Fatou and Gaston Julia around 1918, but nobody had been able to see it: drawing it takes millions of multiplications, which is why the Mandelbrot set became a symbol of what computers made visible.

Famous places of the Mandelbrot set

The border of the set is not the same everywhere: each valley has its own style of decoration, and each one has a name given by the people who explored it. The buttons above the image take you straight to them.

PlaceWhere it isWhat you see
Seahorse ValleyAround -0.7453 + 0.1127i, in the crack between the main cardioid and the big circle on its leftTails curled like seahorses, made of thinner and thinner spirals. It is the classic first zoom of the set.
Elephant ValleyAround 0.2825 + 0.01i, on the right side of the main cardioidA parade of shapes that look like elephants walking in line, each one smaller than the last.
Triple Spiral ValleyAround -0.0888 + 0.6547iGroups of three spirals turning around each other, repeated at every scale.
Mini MandelbrotAround -1.7638 + 0i, on the antenna that points to the leftA complete, tiny copy of the whole set, surrounded by decorations that do not exist around the original. There are infinitely many of these copies.

Frequently Asked Questions (FAQ)

Is this Mandelbrot generator free to use?

Yes, this tool is 100% free and works directly in your browser, with no installation and no sign-up required.

Are the images uploaded to a server?

No. The fractal is calculated by your own browser and the image never leaves your computer.

Can I use the generated images in my own projects?

Yes. The images are generated by a mathematical formula, and you can use them in websites, wallpapers, posters, videos, games and printed material.

How deep can I zoom?

Up to a magnification of about 1013, which is ten trillion times. Beyond that, the numbers used by the browser (64 bit floating point) do not have enough decimal digits to tell two neighbor pixels apart, and the image breaks into flat blocks. Programs that zoom deeper than that have to use arbitrary precision arithmetic, which is much slower.

Why does the image look flat and featureless when I zoom in?

Because the number of iterations is too low for that magnification. Deep inside a valley, the points near the border need hundreds or thousands of steps before they escape, and with too few iterations they are all painted as if they were inside the set. Raise "Maximum iterations", or keep "Increase the iterations when zooming in" turned on.

Why is the image drawn in blocks that get sharper?

The tool first paints big squares to show you a rough image immediately, and then refines it down to single pixels. This way the page never freezes, and you can keep zooming before the fine detail is finished.

What does "smooth coloring" do?

Without it, every pixel is colored by a whole number of iterations, so the image has visible steps between the color bands. Smooth coloring adds the fractional part, calculated from how far the point was when it escaped, and turns those steps into a continuous gradient.

How do I go back to a view I liked?

Note the three numbers of the options panel: the center (real part), the center (imaginary part) and the zoom. Typing them again brings the image back exactly, on any computer.

Is the Mandelbrot set really infinite?

The set fits inside a circle of radius 2, so its area is finite, but its border has infinite length and infinite detail: no matter how much you magnify it, it never becomes a smooth curve. That is what makes it a fractal.

What is the relation between the Mandelbrot set and Julia sets?

They come from the same formula. In the Mandelbrot set each pixel is a different value of c, always starting from z = 0. In a Julia set the value of c is fixed for the whole image and each pixel is a different starting value of z. Every point of the Mandelbrot set corresponds to a connected Julia set, and every point outside it to a Julia set broken into dust.

Related tools

Julia Set Generator

Julia Set Generator

Draw Julia sets by choosing the constant c, zoom into them and download the image.
Burning Ship Fractal Generator

Burning Ship Fractal Generator

Draw the Burning Ship fractal, zoom into the ship and download the image.
Newton Fractal Generator

Newton Fractal Generator

Draw the Newton fractal of z³ - 1, with one color for each root.
Sierpinski Triangle Generator

Sierpinski Triangle Generator

Draw the Sierpinski triangle, by dividing a triangle or by playing the chaos game.
Koch Snowflake Generator

Koch Snowflake Generator

Draw the Koch snowflake, the antisnowflake and the Koch curve.
Create images using math equations

Create images using math equations

Generate images from mathematical formulas.
Turing Pattern Generator

Turing Pattern Generator

Generate Turing Pattern images.