Timestamp Converter
Timestamp Converter
Convert Unix timestamps to human-readable dates and vice versa.
About the Unix Timestamp Converter
A Unix timestamp (also called epoch time or POSIX time) counts the seconds since 00:00:00 UTC on 1 January 1970. It is how most databases, logs, APIs and JWTs store points in time, because it is a single number with no time zone or format ambiguity. The catch is that 1767225600 means nothing to a human reader.
This converter turns a timestamp in seconds or milliseconds into a readable date — in ISO 8601, UTC and your local time — plus a relative description ("3 days ago"), the day of the week and the ISO week number. It also works the other way, turning a date string into Unix seconds and milliseconds.
Common uses
- Reading
created_atorupdated_atvalues from a database or API. - Checking
expandiatclaims in a JWT. - Converting log timestamps to local time while investigating an incident.
- Creating a timestamp for a specific date to use in a test or a query.
How to use it
- Enter a timestamp, or click Use Now for the current time.
- Press Timestamp → Date to see every representation.
- Or enter a date such as
2026-01-01T00:00:00Zand press Date → Timestamp.
Example
Converting a seconds-based timestamp:
1767225600
ISO 8601 (UTC): 2026-01-01T00:00:00.000Z
Unix (ms): 1767225600000
Day of week: Thursday
Tips and common pitfalls
- Seconds have 10 digits for current dates; milliseconds have 13. JavaScript's
Date.now()returns milliseconds, while most Unix tools and JWTs use seconds. - Unix time is always UTC. Convert to local time only when displaying a value to a user.
- When writing dates as strings, use ISO 8601 with an explicit offset (
2026-03-01T09:30:00+02:00or a trailingZ). Strings without an offset are interpreted in the local time zone. - Signed 32-bit timestamps overflow on 19 January 2038 (the "Year 2038 problem"). Use 64-bit integers for time values.
Frequently asked questions
Do Unix timestamps include leap seconds?
No. Unix time assumes every day has exactly 86,400 seconds, which makes date arithmetic simple at the cost of ignoring leap seconds.
How do I get the current Unix timestamp in code?
JavaScript: Math.floor(Date.now() / 1000); C#: DateTimeOffset.UtcNow.ToUnixTimeSeconds(); Python: int(time.time()); Bash: date +%s.
How does the tool know whether I entered seconds or milliseconds?
It looks at the size of the number: values above 10,000,000,000 (11 or more digits) are treated as milliseconds, smaller ones as seconds.
Can timestamps be negative?
Yes. Negative values represent dates before 1 January 1970.