Passwords and timestamps, handled locally.
Two security tools and two date tools. The pairing is unusual, and the thing they share matters: all four handle input you would not want sent anywhere, and none of them send it.
A password generator that runs on a server is a contradiction — the server sees every password it makes. Everything on this page runs in your browser, using the operating system's cryptographic random number generator by way of the Web Crypto API. The password exists on your machine and nowhere else, and the same applies to anything you paste into the strength meter.
Which tool do you need?
Two for credentials, two for dates and times.
| If you want to… | Use | Worth knowing |
|---|---|---|
| Create a strong password or passphrase | Password Generator | Uses crypto.getRandomValues, not Math.random. The difference is the whole point of a generator. |
| Judge how strong an existing password is | Password Strength Meter | Estimates entropy and checks common patterns. Never paste a password you are actively using anywhere. |
| Convert a Unix timestamp to a readable date, or back | Unix Timestamp Converter | Ten digits is seconds, thirteen is milliseconds. Mixing them up puts you in 1970 or the year 56000. |
| Work out the gap between two dates, or add days to one | Date Calculator | Handles leap years and month lengths correctly, which manual arithmetic reliably gets wrong. |
All 4 security and time tools
Each has its own page with the reasoning and the edge cases spelled out.
Why the source of randomness decides whether a password is safe
A generated password is only as unpredictable as the number generator behind it, and browsers expose two that are not interchangeable.
Math.random() is a pseudo-random generator designed for speed. It is seeded from a small internal state and produces a deterministic sequence from it. Given enough output, that state can be recovered and every subsequent value predicted. It is entirely adequate for shuffling a carousel and entirely unsuitable for a password — a generator built on it produces passwords that look random and are not.
crypto.getRandomValues() draws from the operating system's cryptographically secure entropy pool, the same source that seeds TLS keys. Its output is not predictable from previous output. Every password tool on this page uses it.
This is not a theoretical distinction. Password managers and crypto wallets have shipped with weak PRNGs and had funds and accounts drained as a direct consequence. When evaluating any generator, the question worth asking is which source it uses — and a generator that runs server-side has a prior problem anyway, because it knows the password it just gave you.
Length beats complexity, and it is not close
The strength of a random password is its entropy in bits: log2(alphabet size) × length. Both factors count, but they do not count equally, because length is in the exponent.
Compare two passwords. A 10-character password using uppercase, lowercase, digits and symbols draws from about 95 characters — roughly 66 bits. A 16-character password using only lowercase letters draws from 26 — roughly 75 bits. The longer, simpler password is around 500 times harder to brute force, despite looking far less "complex".
This is why composition rules have fallen out of favour. Requiring an uppercase, a digit and a symbol adds a handful of bits in theory, while in practice it produces Password1! — because humans satisfy the rule in the most predictable way available. NIST's current guidance reflects this: require length, drop mandatory composition rules, drop periodic forced rotation, and check candidates against lists of known-breached passwords.
Practical targets: 16 characters or more for anything a password manager will remember for you, and a four-to-six word passphrase for the handful you must type yourself. Six random common words is about 77 bits — stronger than almost any password a person invents, and far easier to type on a phone.
The caveat that makes all of this work: it applies to randomly generated values. A 20-character password built from a song lyric has almost no entropy, because the attacker's guess list is song lyrics, not all 20-character strings.
What a strength meter can and cannot see
A strength meter estimates. It can measure length, character variety, and whether the input matches known weak patterns — dictionary words, keyboard runs like qwerty, dates, repeated characters, and the predictable substitutions (a→@, o→0) that attackers' tools expand automatically.
What it cannot know is whether your password is already in a breach corpus, whether you have reused it on another site, or whether it is meaningful to someone who knows you. Tommy2019! scores reasonably on character variety and is trivially guessable by anyone who knows your dog's name and the year you got him.
Treat a meter as a floor, not a ceiling. "Weak" is reliable information and worth acting on. "Strong" means only that no obvious pattern was detected.
One important caution about meters generally, including this one: do not paste a password you currently use into any web tool. This one processes locally and transmits nothing, which you can verify in your browser's network panel — but you cannot verify that about every tool you encounter, and the habit is what matters. Test the kind of password you are considering, not the live one.
Unix timestamps: the two mistakes everyone makes
A Unix timestamp counts elapsed time since 1 January 1970, 00:00:00 UTC. It is a single integer with no timezone, which is precisely why systems use it — it means the same instant everywhere, and comparing two of them is just comparing numbers.
Mistake one: seconds versus milliseconds. Unix traditionally counts seconds; JavaScript's Date.now() returns milliseconds. A current timestamp is 10 digits in seconds and 13 in milliseconds. Feed a millisecond value to something expecting seconds and you land tens of thousands of years in the future; the reverse puts you in January 1970. Counting the digits identifies it immediately.
Mistake two: assuming the conversion is timezone-free. The timestamp is UTC, but the human-readable date you convert it to is in some timezone, and which one changes the answer. A timestamp falling at 02:00 UTC is already the next day in India and still the previous evening in New York. Any bug report about an off-by-one day is this.
Two further points worth knowing. The 32-bit signed limit is reached on 19 January 2038, after which such counters overflow — most systems have moved to 64-bit, but the problem persists in embedded firmware and old file formats. And Unix time ignores leap seconds, so it is not strictly the count of elapsed SI seconds; this matters for precision timing and for nothing else.
Why date arithmetic is harder than it looks
Adding a month to a date sounds trivial and has no single correct answer. What is 31 January plus one month? Most systems say 28 February (or 29 in a leap year), clamping to the end of the month. Some say 3 March, overflowing. Neither is wrong; they are different conventions, and code that mixes them produces drift.
Leap years are the other trap, and the rule has three clauses, not one: a year is a leap year if divisible by 4, except years divisible by 100, except years divisible by 400. So 1900 was not a leap year and 2000 was. Implementations that only check divisibility by 4 are correct for the entire span most people will ever test and wrong at century boundaries — famously including a spreadsheet bug that treats 1900 as a leap year to this day, for backwards compatibility.
Then there is the question of whether both endpoints count. Between 1 March and 3 March there are two days of elapsed time and three calendar days inclusive. Age, notice periods and rental terms all hinge on this, and the convention differs by context — which is why the date calculator reports both rather than picking one for you.
Age is its own case. Exact age is not days divided by 365.25; it is years since the birth date with the remainder measured in months and days, and whether the birthday has occurred yet this year decides the year count. The age calculator handles the leap-day birthday case too, which has no universal answer either.
Frequently asked questions
Is a generated password sent anywhere?
No. It is produced in your browser by the Web Crypto API and never transmitted. Nothing about it reaches a server, which is the only arrangement under which a web-based generator makes sense.
Should I paste my real password into the strength meter?
Not as a habit. This tool processes locally and transmits nothing, but you cannot verify that about every tool you meet, so it is better to test a password of the same shape than the live one.
How long should a password be?
At least 16 characters where a password manager stores it for you, or a four-to-six word random passphrase for the ones you type. Length contributes far more than symbol variety does.
Are passphrases really as strong as random strings?
Yes, when the words are chosen randomly. Six random common words is around 77 bits of entropy, which exceeds almost any human-invented password and is much easier to type.
My timestamp converted to 1970. What went wrong?
You almost certainly supplied milliseconds to something expecting seconds, or a value close to zero. Current timestamps are 10 digits in seconds and 13 in milliseconds.
Why does the date difference differ by one from my own count?
Inclusive versus exclusive counting. Between 1 March and 3 March there are two elapsed days and three calendar days. Both figures are shown so you can use whichever your situation calls for.
Does the generator avoid ambiguous characters?
You can exclude look-alikes such as l, I, 1, O and 0, which is worth doing for anything that will be read aloud or copied by hand. It slightly reduces the alphabet, so add a character or two of length to compensate.