Online Unix timestamp converter
Paste an epoch timestamp from a log, a database row or an API response and see the date it stands for, in UTC, in your own time zone and in any other. Or type a date and get its Unix timestamp. Seconds, milliseconds, microseconds and nanoseconds are told apart by their number of digits, and 19-digit nanosecond timestamps keep every digit.
Features
- Epoch to date: ISO 8601 in UTC and in a chosen zone, plus your local time and the day of the week.
- Date to epoch: the timestamp in seconds, milliseconds, microseconds and nanoseconds.
- Unit detection: 10 digits are seconds, 13 milliseconds, 16 microseconds, 19 nanoseconds. Choose the unit by hand when a value is ambiguous.
- Date formats from logs: ISO 8601 (with
Tor a space, basic or extended),2024/12/03, RFC 2822 (emails and HTTP headers), access logs (03/Dec/2024:08:00:00 +0000) and JavaScript'sDate.toString(). - Every time zone: search by city, country, abbreviation (PST, IST) or offset (
+05:30). A date with no offset is read in that zone; a trailing zone name such as2024-12-03 08:00 Asia/Tokyoworks too. - Daylight saving time: a time that does not exist (clocks jumped forward) or happens twice (clocks went back) is pointed out.
- Private by design: no uploads, no tracking, nothing stored.
How to convert a Unix timestamp
- Paste the timestamp into Input, or press Now for the current time.
- Check the unit next to Input. If Auto picked the wrong one, choose it under Unit.
- Pick a Zone to see the date there. Each value has its own Copy button; Ctrl/⌘ + Shift + C copies the main one.
Which unit is my timestamp in?
| Digits | Unit | Example | Typical source |
|---|---|---|---|
| 10 | Seconds | 1733212800 | Unix date +%s, Python time.time(), JWT exp |
| 13 | Milliseconds | 1733212800123 | JavaScript Date.now(), Java System.currentTimeMillis() |
| 16 | Microseconds | 1733212800123456 | PostgreSQL, Python time.time_ns() // 1000 |
| 19 | Nanoseconds | 1733212800123456789 | Go UnixNano(), OpenTelemetry, InfluxDB |
Frequently asked questions
What is a Unix timestamp?
A Unix timestamp (epoch time) is the number of seconds since 1 January 1970 00:00:00 UTC, not counting leap seconds. It is the same everywhere in the world, so it has no time zone; the zone only matters when you show it as a date.
Is my timestamp in seconds, milliseconds, microseconds or nanoseconds?
Count the digits. Today's timestamps have 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. The converter detects the unit this way, and you can choose it by hand.
What is the year 2038 problem?
Systems that store Unix time in a signed 32-bit integer overflow after 2147483647, which is 2038-01-19 03:14:07 UTC, and wrap around to 1901. Software using 64-bit timestamps is not affected.
How do I convert a date to a Unix timestamp?
Type or paste the date, for example 2024-12-03 08:00:00 or 2024-12-03T08:00:00Z. If the date has no offset, it is read in the time zone you choose. The timestamp is shown in seconds, milliseconds, microseconds and nanoseconds.
Can a negative Unix timestamp be converted?
Yes. Negative timestamps are dates before 1970; for example -86400 is 1969-12-31 00:00:00 UTC.
Is my data safe?
Yes. The conversion runs in your browser with time zone data that is part of the page. Nothing you type is sent to a server or stored.