tools
Equirectangular to cubemap (and cubemap to equirectangular)
Upload a 2:1 panorama and get the six cube faces as PNG, separately or in a ZIP. Or the other way round: pick six faces and an equirectangular gets stitched. Everything is computed in your browser.
or drop it here (equirectangular JPG or PNG, 2:1 ratio)
Choose the six faces
The image never leaves your browser: nothing is uploaded to any server.
What a cubemap is and what it is for
A cubemap represents the surroundings with six square images, one per face of a cube: front, back, left, right, up and down. It is the format expected by 3D engines (Unity, Unreal, Godot, Three.js, Babylon), game skyboxes, reflection maps and many 360 viewers, because each face is a normal texture without the equirectangular's distortion at the poles.
How to convert an equirectangular to a cubemap
- Choose the equirectangular panorama (2:1 JPG or PNG).
- Pick the face size. The rule is the panorama's width divided by four: an 8192 px equirectangular gives 2048 px faces.
- Download the six faces separately or as a ZIP named
f, b, l, r, u, d(the Marzipano and krpano convention) or with your engine's naming.
And from cubemap to equirectangular
The reverse path is here too: choose the six faces and the tool stitches them into a single 2:1 panorama ready for any 360 viewer, for social media or for Andarama. Useful to recover a game skybox, a Blender render in cube format or a panorama from a camera that exports faces.
How it is computed
For every pixel of every face, a direction is traced from the centre of the cube, converted to longitude and latitude, and the matching point of the equirectangular is read. It is the same geometry Andarama's tiler uses to prepare tours, executed here on a Canvas inside your browser. No image is uploaded anywhere.
Frequently asked questions
Which face size should I choose?
The equirectangular's width divided by four: 4096 wide, 1024 px faces; 8192, 2048 px faces. A larger size adds no detail, only weight.
In which order and with which names do the faces come out?
By default with the Marzipano and krpano convention (f, b, l, r, u, d). You can also pick the Unity and Three.js one (px, nx, py, ny, pz, nz).
Can I convert a video?
No, images only. For 360 video you need a desktop program such as FFmpeg with the v360 filter.
Is my panorama uploaded?
No. The conversion runs pixel by pixel in your browser.
Want to turn it into a tour?
With Andarama you connect several 360 photos, add hotspots, quizzes and narration, and publish a link anyone can walk through from any browser or headset.
Create your account (14 days free)