How to use the Unix Timestamp Converter
- 1Paste a timestamp. Seconds or milliseconds are detected automatically.
- 2Choose a time zone to see the local date and time.
- 3Or pick a date and time to get its Unix timestamp.
- 4Copy the ISO 8601 string or the timestamp.
What is a Unix timestamp converter?
A Unix timestamp converter changes "epoch time", a single number that counts seconds since 1 January 1970 UTC, into a normal date and time, and back again. This tool shows the live current timestamp, converts seconds or milliseconds to a readable date in any time zone, gives the ISO 8601 and relative ("3 days ago") forms, and turns a date and time you pick into a timestamp.
Developers meet timestamps in databases, logs, APIs and tokens. A converter saves doing the maths by hand.
How does Unix time work?
Unix time is the number of seconds that have passed since 00:00:00 UTC on Thursday, 1 January 1970, a moment called the Unix epoch. It is defined in the POSIX standard. Two details matter:
- It ignores time zones. The timestamp
1764547200is the same moment everywhere in the world. Only its display changes: 00:00 in London, 05:00 in Karachi. - It ignores leap seconds. Every day is counted as exactly 86,400 seconds.
Many systems, including JavaScript's Date.now(), count milliseconds instead of seconds. This tool tells them apart by length: today's second timestamps have 10 digits, millisecond timestamps have 13. Anything with 12 or more digits is treated as milliseconds.
| Value | Unit | Date (UTC) |
|---|---|---|
| 0 | seconds | 1 Jan 1970, 00:00:00 |
| 1000000000 | seconds | 9 Sep 2001, 01:46:40 |
| 1764547200 | seconds | 1 Dec 2025, 00:00:00 |
| 1764547200000 | milliseconds | 1 Dec 2025, 00:00:00 |
| 2147483647 | seconds | 19 Jan 2038, 03:14:07 (32-bit limit) |
Worked example
Paste 1767225600. The tool detects seconds and shows:
- In Asia/Karachi: Thu, 01 Jan 2026, 05:00:00 PKT
- UTC: Thu, 01 Jan 2026, 00:00:00 UTC
- ISO 8601:
2026-01-01T00:00:00.000Z - Milliseconds:
1767225600000
To go the other way, choose the time zone Asia/Karachi and pick 1 December 2026, 05:00:00. The tool returns 1796083200, which is midnight UTC that day, because Pakistan Standard Time is UTC+5 all year with no daylight saving.
You can also paste a date string such as 2026-12-01T09:30:00Z into the first box, and the tool converts it to a timestamp.
What is ISO 8601?
ISO 8601 is the international standard for writing dates and times, such as 2026-12-01T09:30:00Z. The date comes first, largest unit to smallest, so text sorting matches time order. The Z (for "Zulu") means UTC; an offset like +05:00 means five hours ahead of UTC. Most APIs and the JSON you'll see in the JSON Formatter use this format.
What is the year 2038 problem?
Older systems store Unix time as a signed 32-bit integer, whose largest value is 2,147,483,647. That moment is 03:14:07 UTC on 19 January 2038. One second later, the number overflows and becomes negative, which those systems read as December 1901. Modern operating systems and databases use 64-bit timestamps, which won't overflow for billions of years, but old embedded devices and file formats may still be affected.
Tips
- Store times in UTC and convert to local time only for display.
- Check token expiry in JWTs: the
expclaim is a Unix timestamp in seconds. Paste the whole token into the JWT Decoder to see it decoded. - Scheduling jobs? Convert your local time to UTC here, then build the schedule with the Cron Expression Builder.
- Islamic dates follow a different calendar entirely; use the Hijri Date Converter.
- Searching logs for timestamps? Match 10- or 13-digit numbers with
\b\d{10}(\d{3})?\bin the Regex Tester.
Limitations
- Leap seconds are not represented, matching Unix time itself.
- Very old or far-future dates follow your browser's calendar rules (the proleptic Gregorian calendar).
- A 10- or 11-digit number is always read as seconds and 12+ digits as milliseconds, so microsecond (16-digit) timestamps should be divided by 1,000 first.
- Time zone names and daylight-saving rules come from your browser's time zone database.
Frequently asked questions
What is a Unix timestamp?
The number of seconds since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is the same everywhere in the world at a given moment.
Seconds or milliseconds?
Most Unix tools use seconds (10 digits today). JavaScript and many APIs use milliseconds (13 digits). The converter guesses from the length.
What is the year 2038 problem?
Systems that store timestamps as signed 32-bit integers overflow at 03:14:07 UTC on 19 January 2038. Modern systems use 64-bit values.
What is ISO 8601?
An international date format such as 2026-12-01T09:30:00Z. The Z means UTC. It sorts correctly as text and is widely used in APIs.
Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.