Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates with timezone support
Timestamp Examples & Use Cases
Standard Format
The international standard for exchanging date and time data.
2023-11-15T14:30:00ZWith Timezone Offset
Includes offset from UTC.
2023-11-15T09:30:00-05:00Examples
Unix seconds → human date in local and UTC
1700000000Unit seconds
UTC 2023-11-14T22:13:20Z
RFC 2822 Tue, 14 Nov 2023 22:13:20 +0000
Local 2023-11-14 17:13:20 EST (UTC-5)The same instant in time, written three ways; the UTC form is stable across machines while the local form reflects the viewer's timezone.
Human date → Unix seconds and milliseconds
2024-01-15 14:30:00 UTCUnix (s) 1705329000
Unix (ms) 1705329000000Pick the unit your database or API uses — milliseconds are JavaScript's `Date.now()` default; seconds are what `date +%s` and most Unix tooling emit.
Same instant, different timezones
2024-06-01T12:00:00ZUTC 12:00
New York 08:00 (UTC-4, EDT)
Tokyo 21:00 (UTC+9)
Sydney 22:00 (UTC+10)A timestamp is a single point on the UTC timeline — converting it to a timezone is formatting, not a data change.
About this tool
A Unix timestamp counts seconds since 1970-01-01T00:00:00 UTC — the epoch shared by virtually every database, API and log format. Enter a value and the Unix Timestamp Converter returns a human-readable date, an ISO 8601 string, a UTC string, a relative phrase such as "in 3 months", and the same instant as both seconds and milliseconds; pick a calendar date to convert the other way.
The seconds-versus-milliseconds trap is handled for you: values below 3,000,000,000 are read as seconds and larger ones as milliseconds, which cleanly separates 10-digit second counts from 13-digit JavaScript values like Date.now(). Quick samples load the epoch itself, Y2K, and 2147483647 — the last second that fits a signed 32-bit clock, reached on 19 January 2038, when such counters overflow. Modern 64-bit systems keep counting far past that date, which is exactly why converters help when auditing legacy data.
Code snippets on the page show the equivalent calls in JavaScript, Python, Go and SQL, and a JSON export captures every format at once for incident notes or bug reports.
How to use this tool
Choose a direction
Pick Timestamp → Date or Date → Timestamp from the mode selector.
Set the unit
Select seconds or milliseconds; the result displays the instant both ways.
Enter or sample
Type a value, press Now for the current second, or load a preset such as the 2038 limit.
Read and export
Copy the ISO string directly or download the full conversion as JSON.
Use cases
Reading API and log timestamps
A log line shows `1700000000` — paste it to see the wall-clock time in your local zone without doing math in your head.
Generating test fixtures
Pick a specific instant (e.g. the start of 2024) and convert it to the seconds-or-milliseconds form your seed file or API contract expects.
Scheduling across timezones
Translate a "midnight on Jan 1" claim into the actual Unix seconds for a particular region so a cron job fires at the intended local moment.
Validating a JWT `exp` or `iat` claim
Decode a Unix timestamp from a token claim, view it as ISO 8601 in UTC, and instantly see whether the token is expired or how long it has left.
Common output formats
| Format | Example |
|---|---|
| Unix seconds | 1700000000 |
| Unix milliseconds | 1700000000000 |
| ISO 8601 | 2023-11-14T22:13:20Z |
| RFC 2822 | Tue, 14 Nov 2023 22:13:20 +0000 |
| Local & UTC | Shown side by side for the same instant |
All conversion happens locally in your browser.
Common mistakes
Mistake:Treating seconds and milliseconds as interchangeable.
Fix:They differ by a factor of 1000. JavaScript's `Date.now()` and `new Date().getTime()` return milliseconds; `Math.floor(Date.now() / 1000)` is seconds — pick one and label it explicitly.
Mistake:Computing in local time and then storing as if it were UTC.
Fix:A timestamp is timezone-independent by definition; only its *display* changes. Use the Date object's UTC methods (or a library) when serializing so DST and host zone never leak into the value.
Mistake:Parsing strings with `new Date('2024-01-15')` and assuming ISO behavior across browsers.
Fix:Bare date strings are implementation-defined — always send an explicit ISO-8601 string with an offset or `Z`, then parse with the same library on both ends.
Mistake:Ignoring leap seconds in scheduling.
Fix:POSIX Unix time skips leap seconds, so 23:59:60 UTC never appears in a timestamp. For wall-clock accuracy around a leap-second event, store an ISO-8601 string instead of a Unix number.
Frequently asked questions
How do I know if a timestamp is in seconds or milliseconds?
Count the digits: ten digits is seconds (valid until the year 2286), thirteen is milliseconds, the JavaScript convention. This tool treats values under 3,000,000,000 as seconds automatically, so a pasted value usually just works.
What is the Unix epoch?
Midnight UTC on 1 January 1970 — 1970-01-01T00:00:00Z — the instant defined as timestamp 0. Earlier moments are represented by negative values.
How do I convert a timestamp to my local time zone?
A timestamp is zone-independent: it marks one absolute instant. The tool renders that instant as a UTC string and, in the advanced view, as your machine's local time, so converting to local time is presentation rather than maths.
What is the year 2038 problem?
Signed 32-bit second counters overflow at 2,147,483,647 — 03:14:07 UTC on 19 January 2038 — and wrap to negative. Software still using 32-bit time_t must move to 64-bit types before then.