Skip to content
devutils.info

Date & Time Tools · Guide

Unix Timestamp Converter guide

Convert Unix timestamps (seconds or milliseconds) to dates and back.

Open the Unix Timestamp Converter

About the Unix Timestamp Converter

A Unix timestamp (epoch time) counts the time since 1970-01-01 00:00:00 UTC. Most systems use seconds (1700000000), while JavaScript, Java and many APIs use milliseconds (1700000000000). Mixing them up is one of the most common date bugs.

This converter turns timestamps into UTC, your local time and ISO 8601 — and converts dates back to timestamps in both seconds and milliseconds.

How to use

  1. Enter a timestamp. With Auto unit, values of 100 billion or more are treated as milliseconds; otherwise as seconds. Choose the unit explicitly to override.
  2. Click Now to fill in the current time.
  3. To go the other way, enter a date like 2026-11-23 14:30 and choose whether it's in your local time zone or UTC. Strings with an explicit offset (Z, +02:00) are always absolute.
  4. Copy any result with its copy button.

Examples

Seconds

Input

1700000000

Output

2023-11-14T22:13:20.000Z

Milliseconds

Input

1700000000000

Output

2023-11-14T22:13:20.000Z

Date to timestamp

Input

2026-11-23T14:30:00Z

Output

1795444200 (seconds) · 1795444200000 (ms)

Unix timestamps explained

Unix time ignores leap seconds and has no time zone: the same instant has the same timestamp everywhere. Time zones only matter when converting to a human-readable date.

Signed 32-bit seconds overflow on 2038-01-19 03:14:07 UTC (the “Year 2038 problem”). Modern 64-bit systems are unaffected.

Get the current timestamp in code

JavaScript:  Math.floor(Date.now() / 1000)
Python:      int(time.time())
Go:          time.Now().Unix()
Bash:        date +%s
PostgreSQL:  SELECT extract(epoch FROM now());

Frequently asked questions

How do I know if a timestamp is in seconds or milliseconds?

Count the digits. Current timestamps have 10 digits in seconds and 13 in milliseconds. The tool shows which unit it inferred and lets you override it.

Which time zone is “local”?

The time zone your browser reports (shown next to the result). It's determined on your device; it isn't sent anywhere.

Are negative timestamps supported?

Yes. Negative values represent dates before 1970, e.g. -86400 is 1969-12-31T00:00:00Z.

Ready to try it? Everything runs locally in your browser.

Open the tool