Several years ago, Google added a fun little Easter egg to Chrome: if your internet went down and you tried to visit a web page, you'd see the message "Unable to connect to the Internet"  or "No internet" with a little pixilated dinosaur next to it.

image-26-opt
Dino says no internet today

Many people probably just thought the dinosaur was a cute little icon to keep them company while their connection was down. But then someone pressed the space bar. And the dino started running.

This little Easter egg has become a beloved game. But what if you just want to play it (careful, it's addictive) when you're online and need a break? In this article, you'll learn how to play the game when you're both off and online.

How to play the Chrome dino or Trex game offline

If your internet is down, just open Chrome. Or if you're already in Chrome, try to visit any web page. You'll see that little dinosaur next to its error message.

Simply press the space bar (or up arrow) and the dino will start running. Press the up arrow to jump over the obstacles (like cacti) in your path. The longer you hold the up arrow, the higher dino will jump.

If you need to duck under something, press the down arrow.

image-27-opt

The longer you play, the faster dino runs/the ground moves. Once you crash into something, the game is over and you have to restart (your score resets, too). You can play again by hitting the space bar.

image-28-opt-1

How to play the Chrome dino or Trex game online

Great, you have some entertainment while waiting for your internet to come back up. But what if you want to play it while online? There are a few ways to do so.

Visit the dino URL

The simplest way to play the game online is by visiting this URL: chrome://dino/. Just access that link and voilà, there's your little dino and "no internet" message.

image-29

Once you see that message, just hit the spacebar and start jumping over cacti.

There is also an unofficial Chrome Dino website where you can play a replica of the game with different sound and graphics themes, such as this Super Mario Bros. theme:

running-mario-opt

Or this Batman theme with 1960s Batman sound effects:

batman-opt

Bonus: Another way to find the game

Maybe you didn't get the dino error message when your internet was down. Or maybe you don't want to purposely turn off your wifi to play the game.

So, if you have internet but want to disable your connection in Chrome dev tools, hit F12 to open up dev tools.

Click the "Network" tab at the top towards the right, and then look for the Online/Offline tab, second row down:

image-30-cropped
Look for the little dropdown arrow next to where it says "online".

Look for the little dropdown arrow, click it, and select "Offline" (instead of "Online", where it should be set if you currently have a connection).

image-31-cropped
Toggle to "Offline"

Once you've done that, if you try to visit a web page, you'll get the dinosaur! You can exit dev tools and hit the space bar, as usual, to get dino running.

image-32-cropped
Play away!

Now you know how to find the dino/Trex game without AND with internet connectivity. Have fun!