Skip to content
shellhacks.dev

Unix Timestamp Converter

Turn a Unix timestamp in seconds or milliseconds into a UTC and local date, or a date back into an epoch.

Free · No sign-up · Your inputs stay in your browser

Input

Convert Unix time

Output

2026-01-01T00:00:00.000Z

Read as seconds

Thu, 01 Jan 2026 00:00:00 GMT

Your local time

Wed Dec 31 2025 18:00:00 GMT-0600 (Central Standard Time)

Date in seconds

1767259800

Date in milliseconds

1767259800000

Unix time counts seconds since 1970-01-01T00:00:00Z and ignores leap seconds. A signed 32-bit counter overflows at 2038-01-19T03:14:07Z, which is why old MySQL TIMESTAMP columns stop there.

Runs in this browser. Nothing you paste is sent to a server.

Seconds or milliseconds?

Unix tools, PHP's time() and MySQL's UNIX_TIMESTAMP() count seconds. JavaScript's Date.now() counts milliseconds. A 13-digit value is almost certainly milliseconds; the converter treats anything above 1011 that way.

The default value

1767225600 is 2026-01-01T00:00:00Z. Press Now to load the current time.

The year 2038

A signed 32-bit integer runs out at 2147483647, which is 2038-01-19T03:14:07Z. MySQL's TIMESTAMP type has the same upper limit, which is one reason to prefer DATETIME for dates far in the future.

Share

Frequently asked questions

Does a Unix timestamp have a timezone?
No. It is always seconds since midnight UTC on 1 January 1970. Timezones only appear when it is turned into a calendar date.
How do I get the current timestamp in a shell?
Run date +%s on Linux or macOS. In PHP use time(), and in JavaScript Math.floor(Date.now() / 1000).
Is what I paste sent anywhere?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is sent to our server or stored.

Go deeper

Suggested reading

Keep planning

Similar tools