AI360Generator

Guides/Updated October 30, 2026

Equirectangular vs cubemap: what's the difference, and how to convert

Both formats hold the same thing, a complete 360° × 180° view, laid out differently. Here's how each one works, where each is used, and how to convert between them without losing detail.

A 360° panorama of Venice unfolded into a cubemap cross of six labelled faces

The short answer

How an equirectangular panorama works

Imagine the sphere around you flattened like a world map. Each column of the image is a direction around you (360° from left to right) and each row is an angle up or down (180° from top to bottom), which is why the image is always 2:1. The left and right edges are the same direction, so a good panorama joins seamlessly when it's wrapped back into a sphere.

An equirectangular panorama of the Venice waterfront at sunset, with the paving curving at the bottom and the sky stretched along the top
An equirectangular panorama: the horizon runs straight across the middle, and the top and bottom rows are stretched.

The catch is at the top and bottom. The whole top row of pixels is a single point straight up, stretched across the full width, so the sky and the ground look warped in the flat image and use far more pixels than they need. That's normal: a 360° viewer undoes the stretch when it wraps the image around you.

How a cubemap works

A cubemap puts the camera inside a cube and saves what it sees through each face: six square images with a 90° field of view each. Nothing is stretched, every pixel covers a similar slice of the view, and graphics cards can sample a cube texture directly, which is why real-time engines like the format.

The faces are usually named after the axis they face: px and nx (right and left, +X and −X), py and ny (up and down, +Y and −Y), pz and nz (+Z and −Z). This is the OpenGL convention that Three.js and many engines use. Cubemaps come in three common layouts:

The Cubemap Generator showing the Venice panorama unfolded into a cross of six labelled faces: py, nx, pz, px, nz and ny
The same panorama as a cubemap, unfolded into a cross. Each face is 512 × 512.

Which one should you use?

What size to choose

To keep all the detail, make each cube face a quarter of the panorama's width: a 2048 × 1024 panorama becomes six 512 × 512 faces, a 4096 × 2048 panorama six 1024 × 1024 faces. Going bigger only adds blur, because there's no extra detail to fill it. Six 512-pixel faces hold about 1.6 million pixels against 2.1 million in the 2048 × 1024 panorama, yet show the same detail, since the cubemap doesn't waste pixels on stretched poles.

How to convert an equirectangular panorama to a cubemap

  1. Open the Cubemap Generator and drop in your 2:1 panorama. It runs in your browser, so the image isn't uploaded.
  2. Leave Face size on Auto, which uses a quarter of the panorama width, or pick a smaller size for faster loading on the web.
  3. Download Six faces (.zip) for separate px, nx, py, ny, pz and nz files, Cross layout for one 4 × 3 image, or Horizontal strip for a 6 × 1 image.

How to convert a cubemap back to an equirectangular panorama

  1. Open Cubemap to Panorama.
  2. Drop in a cross or strip image, or switch to Six faces and add one image per direction. Faces must be square and all the same size.
  3. Leave Output width on Auto (four times the face width), check the result in the 3D preview, then Download PNG.
Cubemap to Panorama with the Venice cross loaded and the rebuilt 2048 × 1024 panorama in the preview
The cross from above turned back into a 2048 × 1024 panorama.

How much quality does a conversion lose?

We converted the 2048 × 1024 Venice panorama to 512-pixel faces and back with the two tools, then compared the result with the original pixel by pixel. The average difference was about 2 levels out of 255 (a PSNR of 36 dB): the two look the same side by side, with a slight softening of fine texture such as the paving stones, which comes from resampling. Converting back and forth repeatedly adds up, so keep your original panorama and convert from it each time.

Common problems

Need a panorama to start from? Describe a scene and the AI generator makes a 2:1 equirectangular panorama up to 4K, which you can then export as cube faces and an HDR from My panoramas.

Open the Cubemap Generator

Questions

Is a cubemap better quality than an equirectangular panorama?

Not by itself. A cubemap stores the view more evenly, so it needs fewer pixels for the same detail, but converting an existing panorama can't add detail that wasn't there. At a face size of a quarter of the panorama width, both show essentially the same image.

What does an HDRI file usually use?

Most HDRI environment maps, such as the ones on Poly Haven, are equirectangular .hdr or .exr files. Tools that need a cubemap convert them on import.

Is my image uploaded when I convert it?

No. Both converters run entirely in your browser.