Timestamp Converter
About Timestamp Converter
Paste a timestamp and the page works out the unit by length: 10 digits is seconds, 13 is milliseconds, 16 is microseconds, 19 is nanoseconds. You don't have to pick.
Out comes the local time (your browser's timezone, shown as UTC+X under the cards), the UTC time, and how far the moment is from now. Click any result to copy it.
Going the other way, pick a date or type one like 2026-01-01 12:00:00, and you get all four units back at once. The nanosecond value is computed with BigInt, so all 19 digits are real; a plain JavaScript number gives up around the 17th digit and you end up with a timestamp ending in a row of zeros.
The bar on top shows the current time ticking every second. Click the seconds or the milliseconds to copy.
A few things worth knowing
13 digits is what you meet most: Java, JavaScript's Date.now() and most APIs produce it. 10 digits comes from older systems. 16 or 19 digits means someone measured finer than milliseconds, probably a performance log.
If the converted date is off by decades, it is almost always a seconds/milliseconds mix-up. Guessing by length handles the usual cases, but a value with leading zeros like 0000012345 can be judged wrong, so glance at the date before trusting it.
Frequently asked questions
Which unit is my timestamp in?
The page guesses by digit count: 10 is seconds, 13 is milliseconds, 16 microseconds, 19 nanoseconds. If the converted date looks like 1970 or the year 50000, the unit was probably not what you assumed.
Why does the nanosecond value end in zeros in other tools?
A JavaScript number is only safe up to 2^53, which is 16 digits. Nanosecond timestamps need 19, so tools using plain numbers lose the tail. This page computes that one with BigInt.
Is the converted time in my timezone?
The local time line is. It follows your browser settings and shows the UTC offset under the cards. UTC time is listed too, so you can compare the two.
Do you store the timestamps I paste?
No. Nothing is stored, and refreshing the page clears everything on it.