Unix Timestamp Converter
Convert a Unix (epoch) timestamp in seconds or milliseconds to a date and time in UTC and your time zone, or turn a date into a timestamp.
How to use it
- 01
Choose whether to convert a timestamp to a date or a date to a timestamp.
- 02
Paste the timestamp (the unit is detected from the number of digits), or pick a date and say whether it’s in UTC or your local time.
- 03
You’ll see the date in UTC, in your time zone, and in ISO 8601 and HTTP formats, plus the timestamp in seconds and milliseconds.
How it works
Unix (epoch) time counts the seconds elapsed since January 1, 1970, at 00:00:00 UTC, ignoring leap seconds. It’s the standard way to store dates in databases, logs, and APIs.
Many systems use milliseconds (JavaScript, Java) instead of seconds (PHP, Python, Unix), so the tool looks at the number of digits: up to 11 digits means seconds, 12 to 14 means milliseconds, and anything longer is microseconds or nanoseconds.
A timestamp doesn’t depend on time zones: the same instant has the same timestamp in New York and Los Angeles. Only the local time used to display it changes.
Systems that store time as a signed 32-bit integer overflow on January 19, 2038, at 03:14:07 UTC (timestamp 2147483647). This is known as the Year 2038 problem.
Examples
- A timestamp in seconds
1700000000 is November 14, 2023, at 22:13:20 UTC (5:13:20 p.m. in New York).
- In milliseconds
1700000000123 is the same instant plus 123 milliseconds.
- The Year 2038 problem
2147483647 is January 19, 2038, at 03:14:07 UTC.
Frequently asked questions
How do I get the current timestamp in code?
In JavaScript, use Date.now() (milliseconds) or Math.floor(Date.now() / 1000) (seconds). In Python, time.time(); in PHP, time(); and in a Unix shell, date +%s.
Can timestamps be negative?
Yes. Negative timestamps represent dates before 1970: −86400 is December 31, 1969, at 00:00 UTC.
Related tools
- 04.04
Time Zone Converter
Date & timeLive - 10.01
UUID Generator
Developer tools - 10.03
JSON Formatter and Validator
Developer tools - 10.02
QR Code Generator
Developer tools - 10.04
Base64 Encoder and Decoder
Developer tools - 10.05
URL Encode and Decode
Developer tools - 10.06
MD5, SHA-1 and SHA-256 Hash Generator
Developer tools - 10.07
HEX, RGB and HSL Color Converter
Developer tools