Pano → 6 faces

Panorama to cubemap, right in your browser

Drop a 2:1 equirectangular image and get the six square faces a game engine expects. The conversion runs on your machine: the file is never uploaded, and the page makes no API calls.

No upload Free, no account Runs offline after load

Convert a panorama

JPG, PNG or WebP · up to 40 MB · stays in this tab

Face size

1024 px is the usual choice for real-time scenes. 2048 px costs more texture memory in the engine.

Output faces are named px, nx, py, ny, pz, nz in OpenGL cubemap order. Import them in that order.

Need the reverse? Turn six faces back into a 2:1 panorama.

Cubemap to Panorama
01

Choose your panorama

Drop a 2:1 JPG, PNG or WebP. Generated PanoCraft panoramas work as-is; any equirectangular image with a 2:1 aspect ratio also works.

02

Pick the face size

512 px for previews, 1024 px for most real-time scenes, 2048 px when you need extra detail in a hero skybox.

03

Download the six faces

Each face downloads as PNG, named px/nx/py/ny/pz/nz, or grab all six in one ZIP and drop the folder into your engine.

Specifications

Input
Equirectangular 2:1, JPG / PNG / WebP, up to 40 MB
Output
Six square PNG faces, ZIP or individual files
Face sizes
512 × 512, 1024 × 1024, 2048 × 2048
Face order
px (+X), nx (−X), py (+Y), ny (−Y), pz (+Z), nz (−Z)
Projection
OpenGL / WebGL cubemap convention
Large sources
Downscaled to 16.7 MP before conversion

What people use it for

Unity skybox

Use a 6-sided skybox material with the px/nx/py/ny/pz/nz faces in that order. The mapping matches Unity's default cubemap layout.

Unreal Engine

Import the six PNGs as a cubemap texture, then plug it into a SkyLight or a background material. Keep the face order as exported.

Blender world

Build an Environment Texture from the cubemap faces, or keep using the panorama for a world shader and use the faces for look-dev previews.

Three.js

Load the six images with CubeTextureLoader in px/nx/py/ny/pz/nz order and assign the result to scene.background or scene.environment.

How this tool works

  • Equirect → face mapping uses u = atan2(z, x) / 2π + 0.5 and v = 0.5 − asin(y) / π.
  • Bilinear sampling; the panorama wraps horizontally and clamps vertically.
  • No EXIF metadata is written; output PNGs are clean pixels only.
FAQ

Questions, answered plainly

If something here does not match what you see in your engine, the technical notes above are the exact behaviour of this tool.

Is my panorama uploaded anywhere?

No. Decoding, projection and PNG encoding all happen in your browser. The page does not send your image to a server; you can watch the network panel and see no upload request.

What order are the faces in?

px (right, +X), nx (left, −X), py (up, +Y), ny (down, −Y), pz (front, +Z), nz (back, −Z). This is the standard OpenGL cubemap order used by Three.js, Unity and Unreal.

Why do some faces look stretched?

A cubemap is a different projection from a panorama, so straight lines bend near the edges and poles. That is expected: once the six faces are sampled as a cube, the distortion cancels out.

Which face size should I choose?

1024 px is the usual sweet spot for real-time scenes. Choose 2048 px only if the skybox is the main visual and your target can afford the texture memory; 512 px is fine for previews and mobile.

Can I convert an 8K panorama?

Yes, within the browser canvas budget: the source is downscaled to about 16.7 MP before conversion, so a very large panorama is resampled first. The page tells you the working resolution after you drop the file.

Does it work offline?

Once the page has loaded, yes. There is no server-side conversion step, so the tool keeps working without a network connection.

Related tools

All tools

Further reading

All guides
Need the panorama itself?

Generate a 2:1 panorama, then bring it back here.

PanoCraft turns a prompt or a photo into a 360° panorama. This tool takes it the last mile into your engine, viewer or lighting setup.

Files are decoded and processed in your browser memory. Nothing is uploaded, logged or stored on a server. Refreshing the page discards every file and result.