Virtual Aquarium

Watch the fish swim. Tap the water to drop food. Every so often, something unusual passes by.

Embed this aquarium

Copy this code into your own web page. Your visitors get the aquarium, free. Nothing you or they enter or upload ever leaves the browser.

What is happening in the tank

Everything you see is drawn live on a canvas by the page itself, with no video or image files behind it. Each fish is generated with its own random size, speed, depth and pair of colours. Bigger fish move more slowly than smaller ones, which is why a mixed tank feels natural. A fish swims in one direction, and when it leaves one edge it re-enters from the other side at a new depth. Movement is scaled by elapsed time, so speed does not depend on how fast your screen refreshes.

The random choices come from a small seeded generator that is started from a different seed each time you load the page. That means no two tanks are alike, and it also lets the project test the fish and visitor logic with repeatable seeds. It is a drawing aid, not a security feature.

The controls

How often do visitors appear?

With rare visitors enabled, a new one is scheduled after a random wait of 25 to 70 seconds, so the average gap is a little under 50 seconds. Which animal comes is weighted rather than equal. Out of every ten visitors, you should expect roughly four moon jellyfish, three seahorses, two manta rays and one anglerfish. That makes the anglerfish the real rarity: it appears about one visit in ten, and a long session is the best way to catch several of them.

Ways to use it

Performance tips

More questions

Do the fish ever eat each other?

No. They only swim and chase food flakes. It is a decoration, not a game.

Will the same fish stay in the tank?

Fish keep circling through the tank while the page is open. When you reload, a new set is created.

Can I put it on my own website?

Yes. The embed box above has a ready-made snippet that you can paste into a page. It loads the aquarium in a frame.

Related tools

About the aquarium

This is a quiet, calm fish tank for your screen. Fish of many colours swim back and forth, bubbles rise, and plants sway in the current. Click or tap the water to scatter food, and nearby fish will swim over to eat it. There is no sound, no score and nothing to win.

It works well full screen on a spare monitor, a TV or a tablet. If your device is set to reduce motion, the tank moves more slowly.

Rare visitors: a short field guide

About once a minute, a less common animal drifts across the tank. A label tells you which one. You can also press Call a visitor.

The drawings are simple illustrations, not scientific portraits.

Frequently asked questions

Does it make sound?

No. The aquarium is silent.

Will it drain my battery?

It draws animation continuously, so a phone or laptop on battery will use more power. Pause it or close the tab when you are not watching. Browsers also stop animating a tab that is hidden.

Can I have more fish?

Use the Fish slider for anywhere from 4 to 40 fish.

Is anything saved or uploaded?

No. Everything is drawn in your browser and nothing is stored.