Timestamp Converter

Convert Unix timestamps to dates in any time zone, and get the same instant as ready-to-paste code (incl. the Temporal API)

Timestamp → Date

Date → Timestamp

Was the Timestamp Converter helpful?

Get new tools in your inbox

About once a month, when new tools ship. No spam, one-click unsubscribe.

We store only your email to send these updates. Privacy

About this tool

The Unix Timestamp Converter translates between Unix epoch timestamps (integer seconds or milliseconds since January 1, 1970 UTC) and human-readable dates. Unix timestamps are the standard time representation in databases, APIs, JWT tokens, server logs, and most programming languages. A World Clock section shows the converted timestamp across a dozen major time zones simultaneously — UTC, US and European cities, and key Asia-Pacific zones — so you can see what a given moment looks like for a distributed team or a global user base without opening a separate timezone converter. Paste seconds, milliseconds, microseconds or nanoseconds — the unit is detected from the length. You get ISO 8601 in UTC and in your zone, RFC 2822, and the same instant as ready-to-paste code for JavaScript (both Date and the Temporal API, now built into Chrome, Firefox and Node 26), Python, Go, Java, C#, PHP, Rust, PostgreSQL, MySQL, SQLite and Bash. Date → Timestamp converts a wall-clock time in any time zone, or any ISO 8601 / RFC 2822 string.

When to use it

  • →Converting timestamps from API responses or database records to readable dates
  • →Debugging JWT token expiry — the exp and iat claims are Unix timestamps
  • →Generating timestamp values for date range queries in SQL or APIs
  • →Understanding what a numeric timestamp in a log file actually represents
  • →Checking what a scheduled job or meeting time looks like across a distributed team's time zones

Tips

  • ◆JavaScript timestamps are in milliseconds — divide by 1000 for Unix seconds.
  • ◆The year 2038 problem affects 32-bit signed integers, which overflow on January 19, 2038. 64-bit systems are not affected.
  • ◆The World Clock grid updates automatically whenever you convert a timestamp — no separate lookup needed.

Frequently asked questions

Why does JavaScript use milliseconds but most APIs use seconds?

Unix time was originally defined in seconds for 32-bit systems. JavaScript's Date.now() returns milliseconds to provide sub-second precision for web performance APIs and animations. When calling REST APIs, always check the documentation — most use second-precision Unix timestamps, while JavaScript timestamps need dividing by 1000.

What is the Year 2038 problem?

Unix time stored as a 32-bit signed integer overflows on January 19, 2038 at 03:14:07 UTC. Any system still using 32-bit timestamps for dates beyond that point will wrap around to a negative number, representing a date in 1901. 64-bit systems and modern databases are not affected — the overflow doesn't occur until the year 292 billion.

How do I convert a JavaScript Date object to a Unix timestamp?

Use Date.now() for the current time in milliseconds, or new Date().getTime(). To get Unix seconds: Math.floor(Date.now() / 1000). To convert a specific date: Math.floor(new Date('2024-01-15').getTime() / 1000). To go the other direction: new Date(unixSeconds * 1000).

What is the difference between UTC and local time in timestamps?

Unix timestamps are always UTC (Coordinated Universal Time) — they represent seconds since January 1, 1970 UTC regardless of timezone. When you display a timestamp as a human-readable date, it gets converted to local time by default. Always store and compare timestamps in UTC; apply timezone offsets only for display.

Guides

Related tools

ToolNinja