Unix Timestamp Converter
Convert a Unix timestamp to a readable date, or a date to a timestamp. Seconds and milliseconds are detected automatically.
By Shah Rukh, software developer · Last updated:
What is a Unix timestamp?
A Unix timestamp (also called epoch time or POSIX time) is the number of seconds since 1 January 1970, 00:00:00 UTC. It’s how most databases, APIs and programming languages store dates, because it’s a single number with no time zone.
Seconds or milliseconds?
A 10-digit number like 1767225600 is seconds. A 13-digit number like 1767225600000 is milliseconds, used by JavaScript’s Date.now() and Java. This converter detects which one you entered.
Get the current timestamp in code
| JavaScript | Math.floor(Date.now() / 1000) |
| Python | int(time.time()) |
| PHP | time() |
| MySQL | UNIX_TIMESTAMP() |
| Bash | date +%s |
Frequently asked questions
What is the year 2038 problem?
Systems that store timestamps as signed 32-bit integers overflow on 19 January 2038. Modern systems use 64-bit values.
Does a Unix timestamp have a time zone?
No. It’s always UTC. The time zone only matters when you display it as a date.
Can timestamps be negative?
Yes. Negative values are dates before 1970.
Related tools
Time Zone Converter
Convert a time between any two time zones.
Countdown Timer
Count down to any date and share the link.
Days Between Dates
Count the days, weeks and business days between two dates.
Date Calculator
Add or subtract days, weeks, months or years from a date.
Time Card Calculator
Add up weekly work hours, breaks, overtime and pay.
Age Calculator
Get your exact age in years, months and days, plus your next birthday.