Timestamp Converter
Convert between Unix timestamps and human-readable dates. Detects seconds vs milliseconds.
Decoded date appears here
Pick a date to encode
What is a Unix Timestamp?
A Unix timestamp (also called Unix epoch or POSIX time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970. It is the universal standard for representing a point in time in computing — all modern operating systems, databases, and programming languages support it.
This tool converts Unix timestamps to human-readable dates and times, and converts dates back to Unix timestamps. It supports both second-precision and millisecond-precision timestamps.
How to convert a Unix timestamp online
- Paste a Unix timestamp (e.g. 1719532800) into the input to convert it to a readable date.
- Or enter a date and time to get the corresponding Unix timestamp.
- The result updates in real time — no button needed.
- Toggle between seconds and milliseconds to match your use case.
Frequently Asked Questions
What is the difference between a Unix timestamp in seconds and milliseconds?
Unix timestamps in seconds count seconds since the epoch (used by most languages and databases). Millisecond timestamps are 1000x larger and are used in JavaScript (Date.now()), Java, and many logging systems. A 10-digit number is typically seconds; a 13-digit number is typically milliseconds.
What is the Unix epoch?
The Unix epoch is midnight on 1 January 1970 (UTC), which has the timestamp value 0. All Unix timestamps are measured relative to this moment.
What happens in 2038?
The Year 2038 problem occurs because many legacy systems store Unix timestamps as a 32-bit signed integer, which overflows on 19 January 2038. Modern systems use 64-bit integers, which will not overflow for approximately 292 billion years.
How do I get the current Unix timestamp in code?
In JavaScript: Math.floor(Date.now() / 1000). In Python: import time; int(time.time()). In MySQL: UNIX_TIMESTAMP(). In PostgreSQL: EXTRACT(EPOCH FROM NOW()).
Are Unix timestamps affected by time zones?
Unix timestamps are always in UTC. Time zone conversion happens only when displaying the timestamp as a local date and time. The underlying integer value is the same regardless of what time zone you are in.