Aspect ratio calculator / ASCII 3D Cat

ASCII 3D Cat

A 3D cat printed with letters and symbols. It watches, swats, meows and can be picked up.

ASCII · 2026 series · All animations

Move the yarn, tap the cat, or press and drag up to lift it. Free under the MIT License.

What it is

The soft 3D cat, printed with letters and symbols instead of paint. Underneath it is the same model: about a hundred balls for the body, legs, tail, chest ruff and head, and a head that really turns in space. Here every ball is turned into characters. Parts that face the light get heavy characters such as #, @ and W; parts in shadow get light ones such as . and :.

About the cat. It is modelled on a real cat: the long-haired grey tabby that lives with the person who runs this site. The round body, the chest ruff and the steady stare come from that cat.

What it does

What you doWhat the cat does
Move the pointer, or drag a fingerTurns its head toward the (@) yarn. The characters on the head re-form as it turns.
Tap or click the catHalf the time it prints < Meow! > and makes a sound. The other half it swats the yarn away with a paw.
Press on the cat and drag upwardYou lift it by the scruff. The body stretches and the legs and tail hang and swing.
Let goIt drops back to the floor and settles.

How a ball becomes text

The screen is a grid of 100 × 72 character cells. For each ball, the page visits the cells it covers and works out, for each one, how far that point of the ball bulges toward you and which way its surface faces. The bulge is used as depth, so a nearer ball overwrites a farther one. The direction gives a brightness, which picks one of four groups of characters. A little randomness along the edge of fluffy parts makes the outline look like fur.

Eyes, ears, nose, whiskers and tabby marks are added the same way, each with its own characters: 0 and @ for the eyes, ^ for ear tips, - / \ for whiskers.

Make it your cat

The panel under the cat is the same as on the other cats: presets, colours for fur, stripes, chest, muzzle, eyes and nose, fluffiness, meow chance and a name. Copy settings gives a block to paste over CONFIG in the file, and the same block works in the soft 3D and 2.5D cats. Very dark fur is lightened a little so it stays visible on the dark screen.

What to changeWhereExample
Characters from dark to brightRAMP'#@WM8%'
Size of a character cellCW and CH (smaller cells give more detail and more work)CW = 6, CH = 10
Size of the cat on screenSCSC = 0.8
Background colourBG'#0b0d17'
Colours, fluff, name, meow chanceCONFIGfur: '#e09a4a'

How to take it

1. Download the file

Press Download the HTML file above. You get ascii-3d-cat.html. It is one file with no libraries and works offline.

2. Copy the code

View the code
Loading…

3. Embed it on your page

<iframe src="https://aspect.tools/ascii-cat" style="border:0;width:100%;max-width:560px;aspect-ratio:1/2.2" title="ASCII 3D Cat" loading="lazy"></iframe>

License and credit

MIT License. You can use it, change it, share it and sell things made with it, for personal or commercial work. The one condition: keep the copyright and license notice that is at the top of the file.
ASCII 3D Cat, 2026 series, by aspect.tools (https://aspect.tools/ascii-3d-cat), MIT License

A visible credit is appreciated but not required.

Questions

Is the ASCII cat really 3D?

Yes. It is a 3D model made of balls, and each ball is shaded and depth-sorted before being printed as characters.

Can I copy the cat as plain text?

Not directly. The characters are drawn on a canvas so they can be coloured and animated quickly. The picture changes every frame.

Can I recolour it?

Yes. Use the panel under the cat or edit CONFIG in the file. Settings copied from the other cats work here too.

How do I pick the cat up?

Press on the cat and drag upward. It hangs by the scruff until you let go.

Does it work on phones?

Yes. Drag a finger to move the yarn, tap the cat, or press and drag up to lift it.

Related tools and guides