Skip to content
SnapTools

Unix Timestamp Converter

Runs in your browser

Convert epoch seconds or milliseconds into readable dates, or turn a date into a timestamp. Both directions, in your browser.

Current epoch1787226430

About this tool

A Unix timestamp counts seconds since 1 January 1970 UTC. It is the format logs, databases and APIs almost always store, and the format humans can never read. The usual confusion is scale: 1700000000 is seconds, while 1700000000000 is milliseconds, and mistaking one for the other lands you in 1970 or the year 55,000. This converter detects which you pasted, and accepts ordinary date strings going the other way.

How to use

  1. Paste a timestamp in seconds or milliseconds — the scale is detected automatically.
  2. Or paste a date such as 2026-03-01 or an ISO 8601 string to get its epoch value.
  3. Copy whichever format you need.

When to use this tool

  • Reading a timestamp out of a log line or database row.
  • Working out when a JWT or session actually expires.
  • Building a timestamp for an API that expects epoch seconds.
  • Checking how long ago an event happened.

Tips

  • Ten digits is seconds; thirteen is milliseconds. Java and JavaScript produce milliseconds, most Unix tooling produces seconds.
  • ISO 8601 is the safest format to store or transmit, because it is unambiguous about timezone.
  • Local time depends on this device's timezone; UTC does not, which is why servers use it.

FAQ

Is anything sent to a server?
No. Conversion uses the browser's Date implementation locally. Nothing is transmitted or stored.
Which timezone is 'Local'?
Whatever your device is set to. UTC and ISO are absolute, so quote those when sharing a time with anyone else.
What about the year 2038 problem?
It affects systems storing timestamps in a signed 32-bit integer, which overflows in January 2038. JavaScript uses doubles, so this converter handles dates far beyond that.