Skip to main content

Unix Timestamp

Unix timestamp (epoch time) is the number of seconds since January 1, 1970, 00:00:00 UTC — the universal time format used in databases, APIs, log files, and programming languages. Our converter translates between Unix timestamps and human-readable dates in any timezone, handles millisecond precision, and shows the current epoch time live.

Current Timestamp

Convert Date to Timestamp

Share this tool
Developer Tools

About the Unix Timestamp Converter

Unix timestamp (epoch time) is the number of seconds since January 1, 1970, 00:00:00 UTC — the universal time format used in databases, APIs, log files, and programming languages. Our converter translates between Unix timestamps and human-readable dates in any timezone, handles millisecond precision, and shows the current epoch time live.

How to use it

  1. Enter a Unix timestamp (seconds or milliseconds) to convert to a readable date.
  2. Enter a date and time to convert to Unix timestamp.
  3. Select your local timezone or any IANA timezone for conversion.
  4. Copy the result in ISO 8601 format, RFC 2822, or raw timestamp.

Formula & methodology

Unix timestamp = (date − 1970-01-01 00:00:00 UTC) in seconds. Millisecond timestamp = seconds × 1000. JavaScript: Date.now() (ms), Math.floor(Date.now()/1000) (s). PHP: time(). Python: import time; time.time(). SQL: UNIX_TIMESTAMP() (MySQL), EXTRACT(EPOCH FROM NOW()) (PostgreSQL).

Common use cases

  • Debugging API responses with timestamp fields
  • Converting log file timestamps to local time
  • Setting expiration times for JWT tokens, cookies, or cache entries
  • Database: comparing timestamps across timezone-unaware systems
  • Checking when a file was created from its filesystem timestamp

Frequently asked questions

On 32-bit systems, Unix timestamps are stored as a signed 32-bit integer, which overflows on January 19, 2038 at 03:14:07 UTC. After that point, the timestamp wraps to a large negative number. 64-bit systems (which virtually all modern systems use) won't overflow until year 292,277,026,596.
A 10-digit timestamp is in seconds since epoch (Unix standard). A 13-digit timestamp is in milliseconds (used by JavaScript's Date.now(), Java's System.currentTimeMillis(), and most modern APIs). To convert: divide by 1000. A 16-digit timestamp is in microseconds; 19 digits is nanoseconds.

Related tools

All Tools →

Embed this tool on your site

Free for personal and commercial use. Just copy the snippet below.