Online Fortune Cookie
Crack a virtual fortune cookie for today's message. You get the same fortune all day and a new one after local midnight. Copy it or save it as an image.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the Online Fortune Cookie?
Click the cookie, wait a second and a half while it cracks, and read your fortune. Then copy it or download it as a PNG card. The messages are short and upbeat, the kind printed on paper slips: "A pleasant surprise is waiting for you", plus a few well-known quotes.
Your fortune is fixed for the day. The page combines your public IP address with today's date and uses that to choose one of about 470 messages, so refreshing does not reroll it. A new one arrives after midnight in your own time zone.
To get your IP address, the page asks the free ipify service (api.ipify.org). If that request fails, it uses your browser type and screen size instead. The IP is only used to pick the message and is not sent to our analytics.
- One fortune per visitor per day from about 470 messages
- Resets at your local midnight
- Copy text or download a PNG card
- Uses ipify only to seed the daily pick
Updated
How to use the Online Fortune Cookie
- Click the cookie to crack it.
- Read your fortune for today.
- Press Copy to copy the text, or Download to save it as an image.
- Come back after midnight, local time, for a new fortune.
Background and insight
Fortune cookies are not a Chinese tradition. Historians trace them to Japanese immigrant bakeries in California in the early 1900s, based on a cracker made in Kyoto, and Chinese restaurants in the US adopted them later. They are still rare in China.
Picking "one fortune per person per day" without storing anything is a small hashing trick. The page joins your IP and the date into a string like 203.0.113.7-2026-10-24, runs a 32-bit string hash over it and takes the remainder when dividing by the number of fortunes. The same input always gives the same fortune, and a new date gives an unrelated one. Earlier versions used the UTC date, which flipped fortunes mid-evening in the Americas; the date now follows your local clock.
Common use cases
Morning ritual
Crack one with your first coffee as a small daily prompt.
Team channel
Have everyone post their fortune in chat and compare.
Journal prompt
Use the fortune as the opening line of a few minutes of writing.
Party game
Read fortunes aloud with the traditional "in bed" ending added for laughs.
Tips and limitations
- People sharing one network (an office or home Wi-Fi) share a public IP and get the same fortune.
- A VPN changes your public IP, so it changes your fortune too.
- If you click before the IP lookup finishes, the page uses a random seed for that visit instead, so your fortune may differ from the one you get on a later visit today.
- Fortunes are for fun. None of them predicts anything.
Sources and further reading
- Solving a Riddle Wrapped in a Mystery Inside a Cookie, The New York Times. Jennifer 8. Lee on the cookie's Japanese origins
- Fortune Cookie Mystery, Harvard Magazine
- RFC 5737: IPv4 Address Blocks Reserved for Documentation, IETF. Why the example IP is 203.0.113.7
Frequently asked questions
Why do I get the same fortune every time I open the cookie today?
Your fortune is chosen from your public IP address and today's date, so it stays the same until midnight in your time zone. Refreshing or reopening the page does not change it.
Does the online fortune cookie collect my IP address?
The page asks api.ipify.org for your public IP and uses it only in your browser to pick a fortune. It is not sent to our analytics or stored. ipify itself sees the request, as with any website you visit.
Why does my coworker get the same fortune as me?
Everyone behind the same office or home router usually shares one public IP address, and the fortune depends on that address plus the date.
How many fortunes are in the virtual fortune cookie?
About 470 unique messages. Most are classic paper-slip fortunes; some are short, widely quoted lines about work and life.
Where did fortune cookies come from?
They are usually traced to Japanese-American bakeries in California in the early 20th century, adapted from a Kyoto cracker, and only later linked with Chinese restaurants in the United States.
Is there an in-depth guide to the Online Fortune Cookie?
Yes. “Small Screen Breaks That Help: Confetti, Jokes, Fortunes and Calm Activities” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.