TextSorter
Live Clock updating every second
Current Unix Timestamp (seconds)
β€”
Milliseconds
β€”
Local Time
β€”
UTC Time
β€”
Timestamp to Date
Enter a Unix timestamp above.
Date to Timestamp
Pick a date and time above.

What is a Unix Timestamp?

A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC β€” a reference point known as the Unix Epoch. It is the most widely used system for representing time in computing.

Because Unix timestamps are a simple integer, they are timezone-independent, easy to store, sort, and compare, and supported universally across programming languages and databases.

Seconds vs. Milliseconds

Classic Unix timestamps count seconds. JavaScript's Date.now() and many modern APIs return milliseconds (multiply seconds by 1,000). This converter auto-detects which you have: values larger than 10,000,000,000 (10 billion) are treated as milliseconds.

Get the current timestamp

Language / ToolSecondsMilliseconds
JavaScriptMath.floor(Date.now()/1000)Date.now()
Pythonimport time; int(time.time())int(time.time()*1000)
PHPtime()round(microtime(true)*1000)
Bashdate +%sdate +%s%3N
MySQLUNIX_TIMESTAMP()β€”
PostgreSQLextract(epoch from now())::intβ€”
Gotime.Now().Unix()time.Now().UnixMilli()
RubyTime.now.to_iTime.now.to_i * 1000

Frequently Asked Questions

What is a Unix timestamp?
A Unix timestamp is the number of seconds elapsed since January 1, 1970 at 00:00:00 UTC. It is a universal, timezone-independent integer representation of a moment in time, used widely in programming, databases, and APIs.
What is the difference between seconds and milliseconds timestamps?
Unix timestamps are traditionally counted in seconds. Many modern environments (JavaScript, Java, etc.) use milliseconds instead β€” just multiply by 1,000. This tool auto-detects the unit: if the value is greater than 10,000,000,000, it is treated as milliseconds.
What is the Year 2038 problem?
32-bit signed integers can only hold values up to 2,147,483,647, which corresponds to January 19, 2038 at 03:14:07 UTC. Systems that store timestamps as 32-bit integers will overflow on that date. Modern 64-bit systems are not affected and can represent dates billions of years into the future.
Is this converter private?
Yes. All conversions happen entirely in your browser using JavaScript. No data is ever sent to a server. The page works offline once loaded.

Related Tools