⏰Timestamp Converter

Convert between Unix timestamp and datetime

Current Time
---------- --:--:--
----------
Unix Timestamp (seconds)

Supported: Unix timestamp (sec/ms), ISO 8601, RFC 2822, common date formats

How to Use

The Timestamp Converter supports mutual conversion between Unix timestamps and readable dates. Enter a timestamp to get the corresponding date and time, or enter a date to convert to a timestamp. Supports both second-level and millisecond-level timestamps.

FAQ

What is a Unix timestamp?

A Unix timestamp is the number of seconds from January 1, 1970 00:00:00 UTC to a specified time, widely used in computer systems to represent time.

What is the difference between second and millisecond timestamps?

Second-level timestamps are 10-digit numbers, millisecond-level are 13-digit. JavaScript and similar languages use millisecond timestamps by default.

How do I tell seconds from milliseconds in a timestamp?

Count the digits: 10 digits (e.g. 1794150000) means seconds, 13 digits (e.g. 1794150000000) means milliseconds. Converting between them is just multiplying or dividing by 1000. This tool detects the unit automatically from digit count, so either format converts correctly without manual switching.

How do I convert a timestamp to a date in Excel?

For second-level timestamps use =A1/86400+DATE(1970,1,1); for milliseconds use =A1/86400000+DATE(1970,1,1), then format the cell as date-time. The result is UTC — add +TIME(9,0,0) if you need Japan Standard Time, or adjust for your own timezone.

How do I get the current timestamp in JavaScript?

Date.now() is the simplest way — it returns the current time as a millisecond timestamp. new Date().getTime() gives the same value. For seconds, divide: Math.floor(Date.now() / 1000).