Online Timestamp Converter

Simple & fast Unix timestamp converter · seconds / milliseconds · batch conversion · days between dates

Local Time
--
--
Unix Timestamp (seconds)
--
Unix Timestamp (ms)
--

Timestamp → Date & Time

Enter a timestamp (auto-detects seconds / milliseconds); the live clock above updates to match
Supports seconds (10-digit) or milliseconds (13-digit), auto-detected
Result

Date & Time → Timestamp

Pick a date & time to get its second and millisecond timestamps
Parsed in your local timezone
Result

📋 Common Date Formats

Enter a timestamp or use the current time to view common formats

± Offset Calculation

Add or subtract a value from the current time to get the target timestamp
Result

Batch Timestamp Conversion

One timestamp per line, mixed seconds / milliseconds supported, auto-detected
Seconds or milliseconds supported, auto-detected
Tip
Conversion Preview
OriginalConverted (local time)Status

Days Between Dates

Calculate the number of days between two dates (natural days, ignoring time)
Result
Days between--
Including both end days--

Get Timestamp by Language

How to get the current Unix timestamp in different languages

? What is a Timestamp?

A timestamp is data that proves a piece of information existed at or before a particular point in time. It is usually a character sequence that uniquely marks a moment.

The Unix timestamp (Unix epoch / Unix time / POSIX time) is the number of seconds since 1970-01-01 00:00:00 UTC, ignoring leap seconds. 1 hour = 3600 seconds, 1 day = 86400 seconds.

Timestamps are widely used for storing dates in code, API signatures, caching & rate limiting, ordering and indexing - a universal time-exchange format between frontend and backend.

🕒 Timezone & DST Notes

This tool converts using your browser's local timezone (defaults to Beijing time, UTC+08:00).

DST history: China observed daylight saving for six periods from 1986 to 1991, each year from 2:00 on the 2nd Sunday of April to 2:00 on the 2nd Sunday of September (Beijing time). It was discontinued in 1992. Keep this in mind when converting historical timestamps.

Timezone rules change from time to time; programs rely on the tzdata database to sense these changes. When comparing historical times across systems, use the same tzdata version.

FAQ

A timestamp is the count of seconds (or ms) since 1970-01-01 00:00:00 UTC - a machine-readable time. A date-time is human-readable text. The two convert into each other.
Usually a 10-digit number is seconds and a 13-digit number is milliseconds. Milliseconds are roughly 1000x larger. Divide by 1000 to check if it still looks like a valid time.
Usually a timezone mismatch. A timestamp itself is timezone-free (always based on UTC); when displayed as local time, a timezone offset must be applied. Make sure the timezone is the same.
Best practice: always store UTC timestamps and convert to local time only in the presentation layer. When exchanging historical times across systems, use the same tzdata version to avoid DST differences.
Copied!