Util Tools logo Util Tools
Developer Tools

Free Unix Timestamp Converter Online

Convert Unix timestamps (seconds or milliseconds, auto-detected) to local, UTC, ISO 8601, RFC 2822, and relative time - and convert any date back to a timestamp. Includes a live epoch clock.

  • 100% free
  • No signup
  • Runs in your browser

Timestamp → Date

Date → Timestamp

Current Time

Unix (seconds)
-
Unix (milliseconds)
-
UTC
-
Local
-

Common Timestamp Reference

TimestampMeaning
0 January 1, 1970 00:00:00 UTC - the Unix epoch
1000000000 September 9, 2001 01:46:40 UTC
1500000000 July 14, 2017 02:40:00 UTC
2000000000 May 18, 2033 03:33:20 UTC
2147483647 January 19, 2038 - the 32-bit signed integer limit (Y2038)
Guide

What is a Unix timestamp?

A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970, the "Unix epoch". It is a simple, timezone-independent way to represent a moment in time as a single integer, which is why it is used throughout programming, databases, and APIs. This tool converts a timestamp to readable formats and back.

Seconds vs. milliseconds

There are two common scales. Classic Unix timestamps count seconds (a 10-digit number around now), while JavaScript and many APIs use milliseconds (a 13-digit number). Mixing them up is a frequent bug that puts a date thousands of years off. This converter auto-detects which scale you pasted based on its length, so you do not have to guess.

Why a timestamp can show the wrong time

A timestamp represents an absolute instant in UTC; the local time it displays depends on the timezone used to format it. If a date looks off by several hours, the usual cause is a timezone mismatch between where the timestamp was created and where it is being displayed. The tool shows local time, UTC, ISO 8601, and RFC 2822 side by side so the difference is clear.

Getting the current timestamp in code

  • JavaScript: Date.now() (milliseconds) or Math.floor(Date.now()/1000) (seconds)
  • Python: int(time.time())
  • PHP: time()
  • SQL: UNIX_TIMESTAMP() (MySQL)

Last updated: July 2026

Frequently Asked Questions

What is a Unix timestamp?
A Unix timestamp is the number of seconds that have elapsed since January 1, 1970 (UTC), known as the Unix epoch. It is a standard way to represent time in programming and databases.
What is the difference between seconds and milliseconds timestamps?
Unix timestamps in seconds are 10 digits long. Millisecond timestamps (used in JavaScript's Date.now()) are 13 digits long. This tool auto-detects which format you are using.
Why does my timestamp show the wrong time?
This is usually a timezone issue. Make sure you select the correct timezone in the converter. Unix timestamps are always in UTC; the local display depends on your timezone setting.
What is epoch time?
Epoch time is another name for Unix timestamp. The epoch refers to the reference point (January 1, 1970 00:00:00 UTC) from which time is measured.
How do I get the current Unix timestamp in different languages?
JavaScript: Date.now() / 1000 | Python: import time; time.time() | Go: time.Now().Unix() | PHP: time() | SQL: UNIX_TIMESTAMP()