UTILS.
100% in-browser
❤️

Love Calculator

Fun love calculator: type two names for a playful match percentage. Just a game — deterministic, private and 100% for entertainment.

Just a fun game — this score has no scientific basis and means nothing real.

About this tool

Love Calculator is a free, in-browser party game: type two names and it shows a playful love-match percentage. It is not a test of anything — just a fun number to share. Nothing is uploaded; the names are turned into a score entirely on your device.

The result is fully deterministic, so the same two names always give the same percentage. The two names are lowercased and stripped to letters, joined with the word "loves" (name1 + loves + name2), and run through a stable rolling hash: starting at 0, each character updates h = (h × 31 + code) as an unsigned 32-bit value. The final percentage is that hash modulo 101, giving a number from 0 to 100.

Because it is a simple hash of the letters, this is entertainment with no scientific or predictive basis whatsoever — real relationships are not decided by arithmetic on names. Type two names and the score, the pairing and a cheeky verdict appear instantly.

Frequently asked questions

Will the same two names always give the same result?
Yes. The score comes from a fixed hash of the letters in the names, so it is fully deterministic — the same pair of names always produces the same percentage, on any device.
How is the percentage worked out?
Both names are lowercased and reduced to letters, joined as name1 + 'loves' + name2, then hashed character by character with h = (h × 31 + charCode) as an unsigned 32-bit integer. The percentage is that hash modulo 101 (0 to 100).
Does the order of the names change the score?
It can. Because the names are concatenated in the order you type them, swapping them may give a slightly different number — it is a game, so exact symmetry is not the point.
Is this a real measure of compatibility?
Not at all. It is purely for entertainment and has no scientific basis. All the maths happens locally in your browser and the names are never uploaded.

More tools