How to use the timestamp converter
- Paste a Unix timestamp (
1735689600,1735689600000, …) or a date string into the left pane. Leave it empty, or typenow, for the current time. - Pick a Time zone for the local-time row: UTC, My time zone (your device’s setting) or one of the listed cities.
- Copy the format you need from the right pane.
Example
1735689600 with the Ho Chi Minh time zone:
Unix seconds 1735689600
Unix milliseconds 1735689600000
ISO 8601 (UTC) 2025-01-01T00:00:00.000Z
ISO 8601 (Asia/Ho_Chi_Minh) 2025-01-01T07:00:00+07:00
RFC 2822 Wed, 01 Jan 2025 00:00:00 +0000
Relative 1 year ago
Day Wednesday · day 1 · ISO week 1 (UTC)
The day of the week, day of the year and ISO week number are calculated in UTC. The relative time uses your device clock.
Time zones
A Unix timestamp has no time zone: it counts seconds since 1970-01-01T00:00:00Z, and it is the same number everywhere on Earth. Time zones only matter when the moment is displayed. The Time zone option adds a second ISO 8601 row in that zone (it is omitted when UTC is selected), including the correct offset for daylight saving time on that date (for example -05:00 or -04:00 for New York). Store and exchange timestamps or UTC ISO strings, and convert to local time only in the user interface.
Unit detection
| Digits | Unit | Example |
|---|---|---|
| up to 11 | seconds | 1735689600 |
| 12–14 | milliseconds | 1735689600000 |
| 15–17 | microseconds | 1735689600000000 |
| 18+ | nanoseconds | 1735689600000000000 |
All four examples above are the same instant: 2025-01-01T00:00:00Z. Negative values count backwards from 1970.
Batch conversion
Paste several values, one per line, to get tab-separated results (tabs shown as spaces here):
0 1970-01-01T00:00:00+00:00
1735689600000 2025-01-01T00:00:00+00:00
2147483647 2038-01-19T03:14:07+00:00
foo invalid
The last timestamp is the 32-bit limit behind the year 2038 problem.
Common mistakes
- Seconds vs milliseconds. JavaScript’s
new Date(n)expects milliseconds, sonew Date(1735689600)lands on January 21, 1970 instead of January 1, 2025. Paste the number here and the status bar tells you which unit it has. - Local time by accident.
2025-01-01T09:00has no offset, so it is read in your device’s time zone. AddZor an offset such as+07:00when a value must mean the same moment everywhere. - Wrong day in reports. A UTC timestamp near midnight falls on a different calendar date in Asia or the Americas. Check the time-zone row before grouping events by day.
To find out when a scheduled job fires next, paste its schedule into the Cron Expression Parser.
Timestamps in code
Math.floor(Date.now() / 1000); // current Unix seconds
new Date(1735689600 * 1000).toISOString(); // "2025-01-01T00:00:00.000Z"
Date.parse('2025-01-01T00:00:00Z') / 1000; // 1735689600
from datetime import datetime, timezone
int(datetime.now(timezone.utc).timestamp())
datetime.fromtimestamp(1735689600, tz=timezone.utc).isoformat()
date +%s # current Unix seconds
date -u -d @1735689600 # GNU date
date -u -r 1735689600 # macOS / BSD date
JWT claims such as exp and iat are Unix seconds, and the JWT Decoder converts them inline. For time-ordered IDs, see the UUID Generator with version 7.
Frequently asked questions
How does it know whether my timestamp is in seconds or milliseconds?
From the number of digits in the integer part: up to 11 digits is seconds, 12 to 14 is milliseconds, 15 to 17 is microseconds and anything longer is nanoseconds. Current dates are 10 digits in seconds and 13 in milliseconds, so the guess is reliable for real-world values. The status bar shows which unit was detected.
Which date formats can I type?
ISO 8601 (2025-01-01T07:00:00+07:00), RFC 2822 (Wed, 01 Jan 2025 00:00:00 GMT) and other formats the browser's Date parser understands. Leave the input empty or type now for the current time. Include a time zone offset or Z: date-time strings without one are interpreted in your local time zone, while date-only strings like 2025-01-01 are treated as UTC.
What is the difference between ISO 8601 and RFC 2822?
ISO 8601 (2025-01-01T00:00:00Z) is the standard for APIs, JSON and databases and sorts correctly as text. RFC 2822 (Wed, 01 Jan 2025 00:00:00 +0000) is the older format used in email headers and some HTTP headers.
Can I convert many timestamps at once?
Yes. Put one value per line. Batch mode prints each input next to its ISO 8601 time in the selected time zone, separated by a tab, so you can paste the result into a spreadsheet. Lines that can't be parsed are marked invalid.
What is the year 2038 problem?
Systems that store Unix seconds in a signed 32-bit integer overflow after 2147483647, which is 2038-01-19T03:14:07Z. Modern languages and databases use 64-bit values, but older C code, embedded devices and some file formats still need checking.
Last updated