TechCompare LogoTechCompare
Back

Unix Timestamp Converter

Convert between Unix timestamps and human-readable dates.

Current Unix Timestamp

# Timestamp to Date

Resulting Date
Enter a timestamp...

📅 Date to Timestamp

Unix Timestamp
Select a date...

How to use this tool

  1. Read the live current timestamp

    The live clock at the top of the tool shows the current Unix time in seconds, updating every second. Use this when you need to hard-code "now" into a test payload, database seed, or log entry.

  2. Convert a timestamp to a date

    Paste an epoch integer, then choose whether the value is in seconds or milliseconds. The tool shows the converted date in UTC, your local timezone, and ISO 8601.

  3. Convert a date to a timestamp

    Pick a date and time in your local timezone. The tool returns epoch seconds and milliseconds for that local instant. The same clock reading in a different timezone represents a different instant, so the reverse result depends on the selected local date and timezone.

  4. Copy the value you need

    Copy the seconds value for classic Unix time and Linux system calls. Copy the milliseconds value for JavaScript's Date.now(), most modern APIs, or any system that expects a JS-style epoch. Use the Cron Generator for standard five-field cron expressions.

About this tool

The Unix Timestamp Converter turns epoch integers into human-readable dates and vice versa. Paste any timestamp in seconds or milliseconds and see it formatted in UTC, your local timezone, and ISO 8601, or enter a date and get the epoch value back. The live clock at the top of the tool shows the current Unix time updating every second, useful when you need to hard-code "now" into a test payload or database seed.

Use it when you're debugging log files that only store epoch time, translating between API responses that use different formats (seconds vs. milliseconds), or confirming that a scheduled job will fire at the moment you expect. Timezone offsets and DST transitions are handled by the browser's native Date implementation across its supported date range.

Formula

Unix time counts from 1970-01-01 00:00:00 UTC. Classic timestamps use seconds, while JavaScript timestamps usually use milliseconds. Multiply seconds by 1,000 before passing them to new Date(), or pass millisecond values directly. Negative values represent dates before the Unix epoch.

When to use it

Daily tasks: reading timestamps out of logs, parsing API responses, setting scheduled job expressions, or sanity-checking that a token's expiry is what you think it is. Pair with the JSON Formatter when the timestamp is buried in a JSON payload, and the Encoding Converter when the payload itself is Base64-encoded.

Pre-explained timestamp concepts covering the most common questions about Unix time.

Frequently asked questions

What is the current Unix timestamp?
The tool shows the live current timestamp, updating every second. Unix time is the number of seconds since 00:00:00 UTC on 1 January 1970, so as of right now it's a number a bit above 1.76 billion.
How do I convert a Unix timestamp to a date?
Paste the timestamp, select seconds or milliseconds, and the converted date appears in UTC, ISO 8601, and your local timezone. 1700000000 seconds corresponds to 14 November 2023 22:13:20 UTC.
Is a Unix timestamp in seconds or milliseconds?
It depends on the source. Classic Unix time and Linux system calls use seconds. JavaScript's Date.now() and many modern APIs use milliseconds. Choose the matching unit in the converter because short and historical epoch values can be ambiguous by digit count alone.
What is the year 2038 problem?
32-bit signed Unix timestamps can't represent any time after 03:14:07 UTC on 19 January 2038, because the number overflows. Most modern systems have moved to 64-bit timestamps, but legacy C code, embedded devices, and old databases are still at risk.
How do I get a Unix timestamp in JavaScript?
For milliseconds, use Date.now(). For seconds (classic Unix time), use Math.floor(Date.now() / 1000). Both return the current epoch, UTC-anchored, so results are identical regardless of the server's local timezone.
What's the difference between ISO 8601 and Unix timestamp?
ISO 8601 is a human-readable string like 2024-03-15T10:30:00Z, while a Unix timestamp is an integer like 1710498600. ISO preserves timezone information, whereas Unix time is always UTC. Converting between them is standard: both libraries and this tool handle it.

Use this tool on your own site

Drop the Unix Timestamp Converter into your blog, docs, or CMS with one iframe snippet. Free, no signup. See all embeddable tools