Timestamp Converter - Unix Epoch & Date Time

Current Timestamp
Seconds—
Milliseconds—
UTC—
Local—

Unix Timestamp → Date & Time

  • Seconds
  • Milliseconds
  • Local
  • UTC
—

Working with timestamps is a daily task for developers across all stacks. Whether you're debugging API responses, converting database values, or syncing time between systems, our Timestamp Converter makes the job instant.

The tool converts bidirectionally: enter a Unix timestamp and get the human-readable date, or pick a date and get the corresponding timestamp. It supports both 10-digit (seconds) and 13-digit (milliseconds) formats — toggle between them as needed.

The live panel at the top always shows the current timestamp in both formats plus the current UTC and local time, updating every second. This is invaluable when you need to grab "now" quickly for testing or logging.

Remember that Unix timestamps are timezone-agnostic — they represent an absolute point in time. The timezone selection only affects how the date string is displayed. When storing timestamps in databases or transmitting between services, always use UTC.

Formel
Unix Timestamp = Math.floor(Date.now() ÷ 1000) | Date = new Date(timestamp × 1000)

Vanliga frågor

What is a Unix timestamp?
A Unix timestamp (also called Epoch time) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC). It's a universal way to represent dates and times across different programming languages and systems.
Why are some timestamps 10 digits and others 13?
10-digit timestamps represent seconds since epoch. 13-digit timestamps represent milliseconds since epoch. JavaScript uses milliseconds (13-digit), while Unix command-line tools often use seconds (10-digit).
How do I convert a timestamp in JavaScript?
To get current timestamp (seconds): Math.floor(Date.now() / 1000). To convert back: new Date(timestamp * 1000). For milliseconds, use Date.now() directly and new Date(timestamp) without multiplication.
What timezone does a Unix timestamp use?
A Unix timestamp is inherently UTC-based — it represents a global moment in time regardless of timezone. Timezone only matters when converting a timestamp to a human-readable date string for display.

Relaterade Räknare