Unix Time Converter

Turn epoch timestamps into dates and dates into timestamps, in UTC and your local zone.

Current Unix time:




How it works

Paste a timestamp and press Convert to date. Values larger than about 100 billion are treated as milliseconds, so both 1700000000 and 1700000000000 work. You get the UTC ISO-8601 time, your local time and how long ago or ahead it is.

To go the other way, pick a date and time in your local zone and press Convert to timestamp. The live counter at the top shows the current Unix time.

Need the signed age, ISO 8601 duration or ISO week numbers between two moments? The free date difference calculator runs in your browser; Anvil's date difference API returns the same maths as JSON, no key needed. Counting down to a date instead? The countdown shows sleeps, weekdays and time left.

Questions

What is Unix time?

The number of seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. It is the same everywhere in the world at a given moment.

What is the year 2038 problem?

Systems that store Unix time in a signed 32-bit integer overflow on 19 January 2038. Modern systems use 64-bit values.

Can I get the duration between two dates as JSON?

Yes. Anvil's keyless date difference API at api.oddlathe.com/v1/date/diff returns the breakdown, ISO duration, age and ISO week numbers — or use the in-browser <a href="/date-difference">date difference calculator</a>.

Related tools

Guides