Unix Timestamp Converter
Convert a Unix timestamp (epoch time) in seconds or milliseconds to a readable date and back, in any time zone, and see the current Unix time live.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the Unix Timestamp Converter
A Unix timestamp (also called Unix time, epoch time or POSIX time) is the number of seconds since 1 January 1970 at 00:00:00 UTC. The Unix Timestamp Converter shows the current Unix timestamp live, turns any timestamp in seconds, milliseconds or microseconds into a readable date in your time zone or any other, and turns a date back into a timestamp. Everything runs in your browser.
Times come from your browser’s built-in IANA time zone database, so daylight saving rules are always current.
How to use the Unix Timestamp Converter
- Read the current Unix timestamp at the top; it updates every second.
- Paste a timestamp to convert it to a date; the unit is detected from its length.
- Choose a display time zone to see the same moment in local time.
- Or enter a date and time to get its timestamp, and copy the value you need.
Timestamp length and unit
Count the digits of a current timestamp to know its unit before you convert it.
| Digits (today) | Unit | Where it comes from |
|---|---|---|
| 10 | Seconds | Unix shells (date +%s), PHP time(), Python int(time.time()), MySQL UNIX_TIMESTAMP(), JWT exp and iat |
| 13 | Milliseconds | JavaScript Date.now(), Java System.currentTimeMillis(), UUID v7, many REST APIs |
| 16 | Microseconds | Go UnixMicro(), Zipkin trace timestamps |
| 19 | Nanoseconds | Go UnixNano(), Python time.time_ns(); divide by 1,000 before pasting, since the converter reads 16 or more digits as microseconds |
Useful Unix timestamps
| Timestamp | Date and time (UTC) |
|---|---|
| 0 | 1 January 1970, 00:00:00 (the Unix epoch) |
| 1000000000 | 9 September 2001, 01:46:40 |
| 1700000000 | 14 November 2023, 22:13:20 |
| 1767225600 | 1 January 2026, 00:00:00 |
| 1798761600 | 1 January 2027, 00:00:00 |
| 2000000000 | 18 May 2033, 03:33:20 |
| 2147483647 | 19 January 2038, 03:14:07 (the signed 32-bit limit) |
Examples
Input
1700000000
Result
2023-11-14T22:13:20.000Z
10 digits, so it is read as seconds: Tuesday 14 November 2023, 22:13:20 UTC.
Input
1767225600000
Result
2026-01-01T00:00:00.000Z
13 digits, so it is read as milliseconds, the unit of JavaScript Date.now().
Common mistakes
- Mixing seconds and milliseconds. A millisecond value read as seconds lands tens of thousands of years in the future; a second value read as milliseconds lands in January 1970. Check the digit count: 10 for seconds, 13 for milliseconds.
- Local time vs UTC. A timestamp is the same moment everywhere; only its display differs by time zone. Store and send timestamps or UTC ISO strings, and convert to local time only for display.
- Signed 32-bit storage. The largest signed 32-bit timestamp, 2147483647, is 19 January 2038 at 03:14:07 UTC. Use 64-bit integers or a proper date type for anything past that.
Works well with the Unix Timestamp Converter
- Time Zone Converter: see the same moment in several time zones.
- Date Difference Calculator: count days or business days between two dates.
- JWT Decoder & Verifier: check the exp and iat times inside a token.
Frequently asked questions
What is a Unix timestamp?
A single number that counts the seconds since the Unix epoch, 1 January 1970 at 00:00:00 UTC. It identifies one instant, the same everywhere on Earth, which is why logs, databases and APIs use it to store time.
Is a Unix timestamp in UTC or local time?
Neither: it has no time zone. It is counted from a UTC starting point, so the same value is correct in every zone, and a time zone only matters when you display it as a date.
Seconds or milliseconds?
Unix and most databases use seconds (10 digits today); JavaScript and many APIs use milliseconds (13 digits).
What is the year 2038 problem?
Signed 32-bit timestamps overflow on 19 January 2038. 64-bit timestamps, used by modern systems, do not have this limit.
How do I get the current Unix timestamp?
In JavaScript, Math.floor(Date.now() / 1000); in Python, int(time.time()); in a shell, date +%s; in MySQL, UNIX_TIMESTAMP(). The converter also shows the current value.
What is the Unix epoch?
The starting point of Unix time: 1 January 1970 at 00:00:00 UTC. A timestamp counts the seconds since then, ignoring leap seconds.
What is the current Unix timestamp?
It is shown live at the top of this page and changes every second. Today it is a 10-digit number in seconds, or a 13-digit number in milliseconds. The value is the same in every time zone.
How do I convert a Unix timestamp to a date?
Paste it into the converter above. In code, multiply seconds by 1,000 for JavaScript (new Date(ts * 1000)), use datetime.fromtimestamp(ts, timezone.utc) in Python, or FROM_UNIXTIME(ts) in MySQL. Our guide Unix timestamps explained covers Java, SQL, Excel and Google Sheets too.
Guides and tutorials
- Time & Scheduling
Unix Timestamps Explained: Seconds, Milliseconds and the Year 2038
What a Unix timestamp is, seconds vs milliseconds, converting in JavaScript, Python, Java, SQL and Excel, and the year 2038 problem.
· 7 min read
- Security & Encoding
UUID v4 vs v7: Which UUID Should You Use as a Database Key?
How UUID v4 and v7 are built, why random v4 keys slow down database indexes, what v7's timestamp reveals, and how to choose between UUIDs and integer IDs.
· 6 min read
- Time & Scheduling
Time Zones and Daylight Saving Time: 8 Bugs Developers Keep Writing
Times that don't exist, times that happen twice, days with 23 hours and offsets that aren't time zones: tested examples of DST bugs and how to avoid them.
· 6 min read
- Time & Scheduling
Cron Expressions Explained: Syntax, Examples and Common Mistakes
What a cron expression is and how to read one: the five fields, special characters, 20 tested examples, the day-of-week OR trap, time zones and DST.
· 9 min read
Related tools
World Clock
See the current time in any two time zones online, with UTC offsets, the time difference and upcoming daylight saving changes. Compare cities at a glance.
Time Zone Converter
Convert a date and time between time zones online with correct daylight saving handling, including gaps and overlaps. Compare EST, PST, GMT, CET, IST and more.
Date Difference Calculator
Calculate the exact difference between two dates online in years, months, days, hours and business days. Count days until a deadline or since an event.
Age Calculator
Calculate your exact age from your date of birth in years, months and days, today or on any date. See total days, weeks and hours and your next birthday.