Unix Timestamp Converter
Convert Unix epoch timestamps to dates and dates back to epoch seconds, milliseconds, microseconds and nanoseconds with UTC and local output.
// JavaScript / TypeScript const date = new Date(1780403087 * 1000); console.log(date.toISOString()); // → "2026-06-02T12:24:47.000Z"
Convert epoch time both ways
Developer-focused timestamp searches usually need fast bidirectional conversion: paste an epoch value and get UTC/local dates, or enter a date and get seconds, milliseconds, microseconds and nanoseconds.
t_unix is epoch seconds, T is the selected instant in milliseconds, and T_epoch is 1970-01-01 00:00:00 UTC.
ms is milliseconds and s is Unix timestamp seconds.
Seconds, milliseconds and precision
- 10-digit values are usually seconds.
- 13-digit values are usually milliseconds, common in JavaScript.
- 16- and 19-digit values are common in high-precision logs.
- JavaScript Date stores milliseconds; microsecond and nanosecond remainders are shown separately.
- Unix timestamps represent an instant; time zones only affect display.
Frequently Asked Questions
Sources and References
- The Open Group Base SpecificationsIEEE/POSIX
- DateMDN Web Docs
- ECMAScript Date ObjectsEcma International
- Epoch & Unix Timestamp Conversion ToolsEpoch Converter
Calculations are based on the listed reference sources. Links open in a new tab.
Related Tools
Add and subtract time durations in HH:MM:SS, HH:MM or unit format, with decimal hours, total minutes, total seconds and copyable results.
Calculate the elapsed hours and minutes between two date-times, with total hours, total minutes, seconds, decimal hours, days and 8-hour shift estimates.
Find the ordinal day number for any date, convert a day number back to a date, and see year progress, days remaining, ISO week and leap-year context.
Calculate the date difference between two dates or add and subtract calendar days from a start date, with full calendar breakdowns.