Genesis Forge
Genesis Forge › Free tools › Developer tools

Timestamp converter

Convert a Unix timestamp in seconds or milliseconds to a readable date in UTC and your local time, or a date to a timestamp.

Runs in your browser. Nothing you enter is uploaded.

What it does

A Unix timestamp counts the seconds since midnight UTC on 1 January 1970. Logs, databases and APIs use it because it is the same everywhere in the world. This tool converts between timestamps and readable dates.

How to use it

  1. Paste a timestamp, or pick a date and time.
  2. Whichever you change, the other follows.
  3. Read the date in UTC (ISO 8601), in your own time zone, and as time from now.

Worked example

The timestamp 0 is 1970-01-01T00:00:00Z. The timestamp 1000000000 is 2001-09-09T01:46:40Z. In India (UTC+5:30) that is 7:16:40 in the morning on 9 September 2001.

How it works

Numbers with 12 or more digits are read as milliseconds and shorter ones as seconds, which is how the two are told apart in practice. The local time shown uses the time zone set on your device. Unix time ignores leap seconds.

Questions

Seconds or milliseconds?

Unix tools and most databases use seconds. JavaScript and Java use milliseconds. A value around 1.7 billion is seconds; around 1.7 trillion is milliseconds.

What is the year 2038 problem?

Systems that store the timestamp as a signed 32-bit number run out on 19 January 2038. Modern systems use 64 bits.

Which time zone is a timestamp in?

None. It is the same instant everywhere. A time zone only matters when you display it.

Related tools

All free tools →