Automatic unit detection
Seconds, milliseconds and microseconds are recognised from the number of digits.
Convert Unix time to dates and back, across time zones.
Loading tool…
APIs, databases and logs store time as Unix timestamps, ISO strings or MySQL DATETIME values, often in UTC. Paste any of them to see the same moment in every common format, in your time zone and another one, and how long ago or how far ahead it is.
Seconds, milliseconds and microseconds are recognised from the number of digits.
Compare your local time with UTC or a second zone such as the server's.
Unix, ISO 8601, RFC 2822 and MySQL DATETIME, each with a copy button.
4 quick steps. Going deeper? Read Building a production REST API with Node.js and Express: validation, auth, errors and testing.
Paste a Unix timestamp (seconds, milliseconds or microseconds) or a date string such as 2026-10-21T09:30:00Z.
The unit is detected automatically from the number of digits.
Pick a second time zone to compare, for example the server's or a client's.
Copy whichever format you need: Unix, ISO 8601, RFC 2822 or MySQL DATETIME.
Typical situations where this tool saves time.
Short answers about privacy, limits and how the tool works.
PHP's time() and most APIs use seconds (10 digits today). JavaScript's Date.now() uses milliseconds (13 digits). The converter detects which one you pasted.
Usually a time-zone mix-up: a UTC value shown as local time, or the reverse. Store and transfer times in UTC and convert only for display.
Signed 32-bit integers can only count seconds up to 19 January 2038. Use 64-bit integers or DATETIME/TIMESTAMP columns that support later dates.
I build custom calculators, admin utilities and integrations for WordPress, Laravel and Next.js teams.