Tesseract (Hypercube) Viewer

See a tesseract, the four-dimensional cube, also called a 4-cube or hypercube. It has 16 corners, 32 edges, 24 square faces and 8 cubes as its cells. We cannot see four dimensions, so the tool turns it in 4D and then projects it: first to 3D, with a camera on the fourth axis (perspective) or by dropping that axis (orthographic), then onto the page. Turn it in any of the six planes it can rotate in (xy, xz, xw, yz, yw, zw) and press Spin to watch a turn in one of them. With no turn and the camera just outside, you get the familiar cube inside a cube. Edges are coloured by the direction they run in, so you can follow the fourth direction. Change the dimensions from 2 to 6 to compare the square, the cube, the tesseract and the 5- and 6-cubes. It prints on US Letter or A4, filling the page or at a width and height you type. Download a PDF, a 300 DPI PNG, an SVG or a PNG of the view. Nothing is uploaded.

100% private — everything runs in your browser. Everything runs in your browser; nothing is uploaded.

100% private — runs in your browser

Print at 100% (Actual size). The SVG holds the same edges and corner dots as the PDF.

Shape

Turn in 4D

Projection

Look

Size

Page

Runs in your browser with our own code: nothing you type is uploaded or saved. Every corner, edge and turn is worked out by our own code. You may use what you make here, including commercially, with no credit needed.

How to view and print a tesseract

  1. Pick a preset, or set the number of dimensions (4 for a tesseract).
  2. Turn it in the six planes, and choose which plane Spin turns it in.
  3. Choose perspective or orthographic for 4D to 3D and for 3D to the page.
  4. Set the turn and the tilt of the 3D view; press Spin.
  5. Choose edge colours, line width, corner dots and the size.
  6. Download the PDF and print at 100% (Actual size), or the PNG, SVG or view PNG.

What you can use it for

  • Maths lessons on dimensions, hypercubes and counting faces
  • Posters and prints of a 4D cube
  • Slides on rotation and projection
  • Pen plotter and laser art from the SVG
  • Comparing the square, cube, tesseract, 5-cube and 6-cube
  • Reference drawings for wire or 3D-printed models

Corners, edges and faces of n-cubes

ShapeDimensionsCorners (2^n)Edges (n × 2^(n − 1))SquaresCubesCells (2n)
Square (2-cube)2441––
Cube (3-cube)381261–
Tesseract (4-cube)416322488
5-cube (penteract)53280804010
6-cube (hexeract)66419224016012

Counted by the tool by listing every face, and equal to 2^(n − m) × C(n, m) for every n and m shown (tested). Formulas from Wikipedia’s Hypercube page; the tesseract’s 16, 32, 24 and 8 from its Tesseract page (both read 13 November 2026).

The 13 presets

PresetDimensions4D to 3D3D to the pageTurned inEdges drawnDeterminant of the turn
Tesseract: cube in a cube (cell-first perspective)4perspective, d = 2orthographicnone321.000000000
Tesseract turned in xw and yw4perspective, d = 3perspective, e = 7xw 30°, yw 20°321.000000000
Tesseract, orthographic, turned in four planes4orthographicorthographicxy 15°, xw 35°, yw 25°, zw 20°321.000000000
Tesseract seen straight along w: a cube4orthographicorthographicnone321.000000000
Tesseract, corner towards you4perspective, d = 3.5perspective, e = 7xw 45°, yw 35°, zw 30°321.000000000
Tesseract in one colour4perspective, d = 3perspective, e = 7xw 30°, yw 20°321.000000000
Thin lines for a pen plotter4perspective, d = 3orthographicxw 30°, yw 20°321.000000000
Tesseract on a dark page4perspective, d = 3perspective, e = 7xw 25°, zw 30°321.000000000
2-cube: the square2–orthographicnone41.000000000
3-cube: the cube3–perspective, e = 6xy 20°, yz 15°121.000000000
5-cube (penteract)5orthographicorthographicxw 30°, yw 20° (+ fixed turns for the extra axes)801.000000000
6-cube (hexeract)6orthographicorthographicxw 30°, yw 20° (+ fixed turns for the extra axes)1921.000000000
Real size: tesseract in a 150 mm square4perspective, d = 3perspective, e = 7xw 30°, yw 20°321.000000000

Worked out by the tool on US Letter.

Perspective: near cell against far cell

4D camera distance dScale of the near cell d / (d − 1)Scale of the far cell d / (d + 1)Near ÷ far
1.53.00000.60005.0000
22.00000.66673.0000
31.50000.75002.0000
51.25000.83331.5000
101.11110.90911.2222

Worked out by the tool for the tesseract with corners at ±1 and no turn: a corner with w = 1 is scaled by d / (d − 1), one with w = −1 by d / (d + 1).

What prints

DownloadWhat is in it
PDFThe edges at the line width you set, coloured by direction or in one colour, with corner dots if set, the counts and the view in the footer and a check bar
PNG 300 DPIThe same sheet as a picture
SVGThe same edges and dots
View PNGThe view as set, 1600 × 1600 pixels

For a plotter or cutter, use SVG to DXF; for paper models of ordinary cubes and solids, Shape Nets.

Which tool to use

You wantUse
A tesseract or any 2- to 6-cube, turned and projectedTesseract (Hypercube) Viewer (this page)
Nets to fold real cubes and prismsShape Nets
Repeating cube patternsCube Pattern
Metatron’s cubeMetatron’s Cube

Other tools: the Op Art Generator for line illusions, and the String Art Generator for straight-line art.

More free tools

Maths shapes and printables?

Drawing and print tools that run privately in your browser, with no sign-up and no watermark.

See all free tools →

Frequently asked questions

What is a tesseract?

The four-dimensional version of a cube, also called a 4-cube or hypercube. A square is bounded by 4 edges and a cube by 6 squares; a tesseract is bounded by 8 cubes, meeting at right angles.

How many corners, edges and faces does a tesseract have?

16 corners, 32 edges, 24 square faces and 8 cubes. The tool counts them by listing them, and the table compares the counts with the formula.

Is there a formula for any number of dimensions?

Yes. An n-dimensional cube has 2^n corners, n × 2^(n − 1) edges and, in general, 2^(n − m) × C(n, m) faces of dimension m, where C(n, m) is the number of ways to choose m of the n directions. For n = 4 that gives 16, 32, 24 and 8.

How do you rotate something in 4D?

In any dimension a rotation turns one flat plane of two directions and leaves the others alone. Four directions give six such planes: xy, xz, xw, yz, yw and zw. The tool has a slider for each and multiplies the six turns together; every result is checked to keep lengths and right angles (determinant 1).

Why does it turn inside out when it spins?

A turn in a plane that includes w, the fourth direction, moves corners towards and away from the 4D camera. In perspective the nearer cube looks bigger and the farther one smaller, so the cubes seem to pass through each other while every edge keeps the same real length.

What is the cube in a cube?

The view with no 4D turn and the camera on the w axis just outside the shape. The cell nearest the camera projects to the big outer cube and the farthest to the small inner one; the other six cells become the six squashed shapes between them. This is like a Schlegel diagram.

Perspective or orthographic?

Perspective divides by the distance to the camera, so far parts look smaller. Orthographic just drops the extra direction, so parallel edges stay parallel and many corners can land on top of each other. Try both: the table shows how much bigger the near cell looks than the far one.

What about 5 and 6 dimensions?

Set the dimensions to 5 or 6. The 5-cube has 32 corners and 80 edges, the 6-cube 64 corners and 192 edges. Their extra directions get fixed turns so they do not hide behind the others.

Where does the word tesseract come from?

The Oxford English Dictionary traces it to Charles Howard Hinton’s 1888 book A New Era of Thought. It comes from the Greek for four and ray, for the four edges at each corner.

Is it free?

Yes. There is no sign-up, no watermark and no limit.

Is anything uploaded?

No. Every point, face, corner and edge is worked out by JavaScript in your browser. Nothing you type is sent anywhere or saved when you close the page.