Toolstia / Unix timestamp converter
Convert Unix timestamps
Databases, log files, API responses and JWT tokens often store moments in time as a single number, such as 1700000000. That is easy for computers and unreadable for people. This tool turns the number into a calendar date and time in UTC and in any time zone you choose, shows how long ago or far ahead it is, and converts a typed date back into seconds and milliseconds.
It is meant for developers, analysts and support staff who are chasing down when something really happened. The page works from the clock in your browser, and nothing you type is sent for processing. It handles seconds, milliseconds, negative values for dates before 1970, and decimal timestamps, which covers nearly every format you will meet in practice.
Timestamp to date
Date to timestamp
A date without a time zone is read in your browser’s own time zone. Add Z at the end to mean UTC.
How it works
- Enter a timestamp, or press Use the current time.
- Read the date in UTC, in your chosen time zone, and relative to now.
- To go the other way, type a date in the second box.
Seconds or milliseconds
Unix time is often counted in seconds (10 digits today) but JavaScript and many APIs use milliseconds (13 digits). With automatic detection, large numbers are treated as milliseconds and smaller ones as seconds. You can force either.
Time zones
A timestamp is the same moment everywhere. The time zone list only changes how that moment is written as a clock time. UTC is the reference most systems use.
Date to timestamp
Type a date such as 2026-10-18 14:30. A date with no zone is read in your browser's time zone. Add Z at the end, as in 2026-10-18T14:30:00Z, to mean UTC.
Limits
Dates before 1970 are negative numbers and are supported. The 2038 problem affects some older systems with 32-bit time, but not this tool.
A checked conversion from start to finish
The timestamp 1700000000 is 2023-11-14T22:13:20.000Z. In Bangladesh time (UTC+6) the same moment is 4:13:20 on the morning of 15 November, and in New Zealand it falls at 11:13:20 that morning in daylight time. The number never changes; only the way the clock is written does.
Going the other direction, 2026-10-18T14:30:00Z converts to 1792333800 seconds, or 1792333800000 milliseconds. If you see a 13-digit number from JavaScript or Java, that is milliseconds, and dividing by 1000 gives the 10-digit seconds value.
How automatic unit detection decides
In automatic mode, any number whose absolute value is 100 billion or more is treated as milliseconds, and anything smaller as seconds. That works for all real dates from 1973 onward in milliseconds and for seconds up to the year 5138.
It breaks for a few unusual inputs. A millisecond value for a date before March 1973 has fewer than 12 digits and is read as seconds, so the date comes out wrong. If your result looks absurd, set the unit by hand. Microsecond values with 16 digits and nanosecond values with 19 digits are not supported, so cut them down to seconds or milliseconds first.
Typing a date: why a date-only value is treated differently
The date box hands your text to the browser's date parser. A date-only value such as 2026-10-18 is read as midnight UTC, while a date with a time and no zone, such as 2026-10-18 14:30 or 2026-10-18T14:30, is read in your own browser time zone. That mismatch is a classic source of results that are off by several hours.
To avoid any ambiguity, add a Z for UTC, as in 2026-10-18T14:30:00Z, or an explicit offset such as +06:00. Formats other than ISO-style dates are interpreted in whatever way your browser allows, so stick with the year-month-day order.
The 2038 limit in numbers
Systems that keep Unix time in a signed 32-bit integer run out at 2147483647, which is 2038-01-19T03:14:07Z. One second later the value overflows. You can paste 2147483647 and 2147483648 into the tool to see the two sides of that boundary. The tool itself uses larger numbers, so it shows dates past 2038 with no problem.
Negative values count backward from 1970, so -86400 is 31 December 1969. This is how older dates are stored in many systems, although some databases use other epochs or reject negative values.
What the relative time line means
The relative line says things like 3 days ago or in 2 hours, measured against your device's clock. It uses a simplified calendar of 365.25-day years and a month of about 30.4 days, and shows only the largest unit. Treat it as a quick sanity check, not an exact age.
Unix time ignores leap seconds, so each day is counted as exactly 86400 seconds. For ordinary work this has no effect, but it means a timestamp is not a precise count of elapsed seconds since 1970.
Questions
What is a Unix timestamp?
The number of seconds that have passed since 00:00:00 UTC on 1 January 1970, ignoring leap seconds.
Why does my result differ by a few hours?
Check the time zone. A date typed without a zone uses your browser time zone, which may differ from the system that made the timestamp.
Is anything sent to a server?
No. Everything is calculated in your browser.
Why does the Zone line differ from the Local line?
The Zone line shows the time zone you picked from the list, while Local uses your device's own setting. They match only when you choose your own time zone.
Can I enter a timestamp with decimals?
Yes. A value like 1700000000.5 is read as seconds and shows the half second, which is common in logs from some languages and databases.
Does the tool handle daylight saving time?
Yes. Zone names such as America/New_York include the daylight saving rules in force on the date shown, so the same zone can have different offsets in summer and winter.
Is a Unix timestamp the same as an Excel date?
No. Excel counts days from a 1900-based date, and a number like 45000 there is a day count. Paste only real Unix seconds or milliseconds here.
Why is the result off by exactly one day?
Look for a date-only entry combined with a time zone far from UTC. The date parses as midnight UTC, which can be the previous or next calendar day where you are.