Unix Timestamp Converter

Convert epoch seconds, milliseconds, microseconds and nanoseconds to UTC or local time, and turn any date back into epoch time.

Free · Instant · Private
Quick answer: A Unix timestamp is a count of seconds since 1970-01-01 00:00:00 UTC, ignoring leap seconds. The value 1700000000 is 2023-11-14 22:13:20 UTC. To convert milliseconds to seconds, divide by 1,000; to convert seconds to milliseconds, multiply by 1,000. A timestamp is time zone independent, and only the displayed wall clock changes when you switch zones.
ISO 8601 in UTC
2023-11-14T22:13:20.000Z

All representations of this instant

Unit conversions use exact integer arithmetic, so large nanosecond values never lose digits to floating point rounding.

FieldValue
Epoch seconds
0
FieldValue

Batch converter

Paste one whole number per line. Blank lines are skipped, and results are shown as CSV that you can copy into a spreadsheet.

Epoch reference table

Landmark timestamps computed live with the same engine as the converter above.

Epoch valueUnitUTC date and time

What Is a Unix Timestamp?

Unix time, also called POSIX time or epoch time, measures an instant as a single number: the count of seconds elapsed since the epoch, 1970-01-01 00:00:00 UTC. It is a continuous count of uniform seconds. Leap seconds are not inserted into the count, so Unix time is not exactly the same as UTC as broadcast by atomic clocks, even though the two agree on ordinary dates.

Because the number describes an absolute instant rather than a wall clock reading, a timestamp has no time zone. The timestamp 1700000000 means the same moment everywhere on Earth. Only the human readable label changes: it is 2023-11-14 22:13:20 in UTC, 2023-11-15 06:13:20 at UTC+08:00, and 2023-11-14 17:13:20 at UTC-05:00.

Formulas and Unit Conversions

Let N be a whole number in a chosen unit. The exact relationships are:

  • nanoseconds = seconds × 1,000,000,000 = milliseconds × 1,000,000 = microseconds × 1,000
  • seconds = floor(nanoseconds / 1,000,000,000), using floor division so negative timestamps stay consistent
  • wall time in a zone offset of Z minutes east of UTC = UTC time + Z minutes
  • epoch from a local wall time = epoch of that wall time read as UTC − Z × 60,000 milliseconds

JavaScript Date objects store milliseconds since the epoch, and the ISO 8601 rendering is produced by toISOString(). This tool does all unit scaling with arbitrary precision integers before handing milliseconds to the date engine, so a 19 digit nanosecond value keeps every digit.

  1. Read the input as an exact integer and multiply it by the unit factor to obtain nanoseconds since the epoch.
  2. Divide by one million with floor division to obtain the millisecond time value used by the date engine.
  3. Render the UTC calendar fields, then shift by the chosen offset in minutes to render the local wall time.
  4. Report the value in all four units, plus calendar details, relative time and the 32 bit boundary status.

Automatic Unit Detection

When the unit selector is on Auto, the absolute value of the input selects a unit. These boundaries are deliberately far outside the range of present day timestamps, so ordinary values are unambiguous.

Absolute input valueDetected unitTypical digit count today
below 100,000,000,000 (1e11)seconds10 digits
1e11 to below 1e14milliseconds13 digits
1e14 to below 1e17microseconds16 digits
1e17 or greaternanoseconds19 digits

Auto detection is a convenience, not a guarantee. A very large seconds value or a small milliseconds value can be misread, so choose the unit explicitly whenever the magnitude sits near a boundary.

Dates Before 1970 and the 2038 Boundary

The epoch is a zero point on a number line, not a lower limit. Negative values represent earlier instants: −1 is 1969-12-31 23:59:59 UTC. On the other side, a signed 32 bit integer tops out at 2,147,483,647, which is 2038-01-19 03:14:07 UTC. Systems that store time in such an integer cannot represent 2038-01-19 03:14:08 UTC without switching to a 64 bit type. The detail table flags whether a value fits in that range.

The browser date engine supports roughly plus or minus 8.64 × 1015 milliseconds, which spans hundreds of thousands of years. Values outside that window are rejected with a clear message instead of returning a nonsense date.

Worked Examples

QuestionInputCalculationAnswer
What date is epoch 0?0 sZero seconds after the epoch1970-01-01 00:00:00 UTC
What date is 1700000000?1700000000 s1,700,000,000 s after the epoch2023-11-14 22:13:20 UTC
Convert milliseconds to a date1700000000000 msDivide by 1,000 to get 1700000000 s2023-11-14 22:13:20 UTC
Convert nanoseconds to seconds1700000000000000000 nsDivide by 1e91700000000 s
What is one second before the epoch?−1 sSubtract one second from the epoch1969-12-31 23:59:59 UTC
When does 32 bit time overflow?2147483647 sMaximum signed 32 bit integer2038-01-19 03:14:07 UTC
Local time to epoch at UTC+08:002023-11-15 06:13:20Subtract 8 hours from the wall time read as UTC1700000000 s
Local time to epoch at UTC−05:002023-11-14 17:13:20Add 5 hours to the wall time read as UTC1700000000 s

The last two rows are worth checking twice: the same local clock reading converts to different timestamps depending on the offset, and the same timestamp produces different local readings. When you need to compute a span between two dates rather than a single instant, the Date Calculator is the better tool.

Epoch Reference Table

Epoch secondsUTC date and timeWhy it matters
01970-01-01 00:00:00The Unix epoch, the zero point of the scale.
11970-01-01 00:00:01One second after the epoch.
10000000002001-09-09 01:46:40The first billion second milestone.
12345678902009-02-13 23:31:30A memorable sequential digits timestamp.
17000000002023-11-14 22:13:20A commonly used modern test value.
21474836472038-01-19 03:14:07Largest signed 32 bit timestamp.
21474836482038-01-19 03:14:08First second beyond the 32 bit limit.

Common Mistakes

  • Mixing seconds and milliseconds. Passing a 13 digit value to an API that expects 10 digits produces a date tens of thousands of years in the future.
  • Assuming a timestamp has a time zone. It does not. Attaching an offset to the number itself is a modelling error; the offset belongs to the display or to the wall time you are converting.
  • Parsing date strings loosely. Text such as 03/04/2026 means different dates in different regions. This tool requires an explicit YYYY-MM-DD format.
  • Ignoring daylight saving time. A fixed offset such as UTC+01:00 is not the same as a named zone that changes twice a year. Choose the offset that applies on the date you are converting.
  • Expecting leap seconds to appear. Unix time deliberately ignores them, so a difference computed from timestamps can be one second off from a leap second aware clock.
  • Using floating point for nanoseconds. A JavaScript Number cannot represent every integer above 253, so 19 digit values need integer arithmetic.
  • Forgetting negative timestamps. Historical data before 1970 is valid and must not be clamped to zero.

Practical Uses and Long-Tail Searches

Developers search for "epoch converter", "unix timestamp to date", "date to unix timestamp", "milliseconds to date", "epoch to ISO 8601", "convert epoch to local time", "what is 1700000000 in date" and "year 2038 timestamp". Typical jobs include debugging API payloads, reading log files, checking token expiry claims, comparing database rows, and building a scheduled task. For schedule syntax, the Cron Expression Generator and Validator shows upcoming run times; for travel and meeting planning, the world time lookup below helps align clocks across regions.

When you store time, keep the timestamp in UTC and convert to a local zone only at the display layer. That single rule removes most daylight saving bugs. If you also need a human readable calendar duration between two dates, compute it from dates, not by subtracting timestamps and dividing by a constant, because calendar months and years are not fixed lengths.

Authoritative References

  • IEEE Std 1003.1 (POSIX) defines seconds since the Epoch as a value that approximates the number of seconds elapsed since 1970-01-01 00:00:00 Coordinated Universal Time, with leap seconds ignored.
  • RFC 3339 defines the Date and Time on the Internet profile of ISO 8601, including the UTC offset notation used in timestamp strings.
  • ISO 8601 specifies the calendar date and time representation, including the YYYY-MM-DD and extended time formats used on this page.
  • ECMA-262 specifies the JavaScript Date object, whose time value is the number of milliseconds since the epoch and whose maximum range is plus or minus 8.64e15 milliseconds.

These standards are named as plain text for attribution; no outbound links are placed in this tool.

Key Takeaways

  • Unix time counts uniform seconds since 1970-01-01 00:00:00 UTC and ignores leap seconds.
  • A timestamp is time zone independent; only its display depends on an offset.
  • Seconds, milliseconds, microseconds and nanoseconds differ by factors of 1,000.
  • Dates before 1970 have negative timestamps, and signed 32 bit time ends at 2038-01-19 03:14:07 UTC.
  • Use exact integer arithmetic for nanosecond values, and always state the unit next to the number.

Last updated: December 4, 2026 · All conversions run locally in your browser. No dates or timestamps are stored or transmitted.

Unix Timestamp Converter FAQ

What is a Unix timestamp?

A Unix timestamp is the number of seconds that have elapsed since 1970-01-01 00:00:00 UTC, excluding leap seconds.

Is a Unix timestamp affected by my time zone?

No. A Unix timestamp is an absolute instant in UTC, and only its human readable display changes with the time zone.

How do I tell seconds from milliseconds?

A 10 digit value near 1.7 billion is seconds and a 13 digit value near 1.7 trillion is milliseconds; this tool also detects microseconds and nanoseconds automatically.

What happens before 1970?

Dates before 1970 have negative Unix timestamps, because the epoch is simply the zero point on a continuous number line.

What is the Year 2038 problem?

A signed 32 bit integer overflows at 2147483647 seconds, which is 2038-01-19 03:14:07 UTC, so older systems cannot represent later timestamps.

Does Unix time include leap seconds?

No. POSIX time counts uniform seconds and ignores leap seconds, so it differs from a clock that inserts them.

How precise is this converter?

It converts whole numbers exactly between seconds, milliseconds, microseconds and nanoseconds using integer arithmetic, with no floating point rounding.

Is my data sent to a server?

No. Every conversion runs locally in your browser and no timestamp or date is stored or transmitted.