How to Save Your Wordle Scores

This is a simple guide on copying your Wordle scores between devices.

For those who aren't famliar, Wordle is a simple word game where players have 6 attempts to guess a 5 letter word.

Wordle is written as a simple webpage with no internet connection needed. The game keeps track of your win streaks and scores on the device that you play with however, seperate devices will have seperate statistics.

This is a simple guide on copying your Wordle scores between devices before The New York Times implements it.

Computer to Computer

This will cover copying Wordle statistics from one computer to another.

This strategy will work for pretty much any computer browser but for now the instructions for this will target Google Chrome only.

On the source computer

  1. Open Devtools by pressing Ctrl + Shift + J (Windows) or Command + Option + J (MacOS). You should be on the Console tab.
  2. Copy the following code into the console
var data = JSON.stringify(localStorage);
window.prompt("Copy", `var data = ${data};localStorage.setItem('gameState', data.gameState);localStorage.setItem('statistics', data.statistics);`);
  1. Press Enter
  2. A popup will appear with some code text. Select all of the text with Ctrl + A (Windows) or Command + A (MacOS)
  3. Share the code text to another computer however you choose. Message it to yourself, share it on Pastebin, carrier pigeon, etc.

On the target computer

  1. Open Devtools by pressing Ctrl + Shift + J (Windows) or Command + Option + J (MacOS). You should be on the Console tab.
  2. Get the text that you copied earlier
  3. Paste the text into the Console. Press Enter
  4. Refresh the page with Ctrl + R (Windows) or Command + R (MacOS)

Android to Computer

This will cover copying Wordle statistics from your Android phone to your computer. The instructions can also be slightly modified to copy scores from one Android to another.

  1. Open up Wordle in your phone's browser
  2. Copy the following code to your Android phone's clipboard.
javascript:(function(){var data = JSON.stringify(localStorage); window.prompt("Copy", `var data = ${data};localStorage.setItem('gameState', data.gameState);localStorage.setItem('statistics', data.statistics);`)})();
  1. Paste the code into your phone's address bar.
    NOTE: For security reasons, Chrome may automatically remove the javascript: portion in the beginning of the snippet. You will need to add this back to make it work. I promise this code is safe to run.
  2. Press Enter
  3. A popup will appear with some code text.
  4. Select all of the code text and share it to another computer however you choose. Message it to yourself, share it on Pastebin, carrier pigeon, etc.
  5. Refer to the Computer to Computer instructions on how to load the code. If you want to load your stats into another Android phone, the above bookmarket can be modified to load the code in.

iPhone to Computer

This will cover copying Wordle statistics from your iPhone to your computer. The instructions can also be slightly modified to copy scores from one iPhone to another.

It's not as simple to run Javascript on the iOS Safari browser so we need to use the Shortcuts app as a workaround.

  1. Open the Shortcuts app
  2. Click the + icon on the top right
  3. Click "Add Action"
  4. Search for "Javascript" and click on "Run JavaScript on Web Page"
  5. Change "Web Page" to "Shortcut Input"
  6. Remove all of the pre-made code and put in the following:
var data = JSON.stringify(localStorage);
window.prompt("Copy", `var data = ${data};localStorage.setItem('gameState', data.gameState);localStorage.setItem('statistics', data.statistics);`);
completion(true);
  1. Click on the triple dot menu on the top right
  2. Give the Shortcut any name you choose. For our purposes we'll call it "Wordle Export".
  3. Turn on the "Show in Share Sheet" switch
  4. Click Done
  5. Open Wordle in Safari
  6. Click on the Share menu arrow and scroll all the way down.
  7. Click "Wordle Export"
  8. Click "Allow" when access is requested
  9. Ignore any JavaScript Timeout errors that appear. Close the share menu.
  10. A popup will appear with some code text. Select all of the text and copy it.
  11. Share the code text to another computer however you choose. Message it to yourself, share it on Pastebin, carrier pigeon, etc.
  12. Refer to the Computer to Computer instructions on how to load the code. If you want to load your stats into another iPhone, re-do these instructions but paste in your saved code into the Shortcut instead and add in completion(true); at the end.