Unix Timestamp Converter

Paste a number or pick a date — this Unix timestamp converter turns epoch time into dates and back.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This Unix timestamp converter turns epoch time into a readable date and a date back into a timestamp. Paste a number in seconds or milliseconds and see it as your local time, UTC and ISO 8601. Or pick a date and time to get the matching timestamp. The current epoch time is shown live at the top.

How do I use the Unix timestamp converter?

  1. Paste a timestamp, such as 1767225600, or pick a date.
  2. The tool detects seconds or milliseconds automatically.
  3. Read the result in local time, UTC and ISO format.
  4. Copy whichever value you need.
How to use the Unix Timestamp Converter on OneHubTools: 4 steps with a real screenshot of the tool
How to use the Unix Timestamp Converter, step by step.

What is epoch time?

Unix time, also called epoch time, counts the seconds since 00:00:00 UTC on 1 January 1970. It is a single number, which makes it easy for computers to store, sort and compare. Databases, APIs, log files and programming languages use it everywhere.

TimestampDate (UTC)
01 January 1970, 00:00:00
10000000009 September 2001, 01:46:40
170000000014 November 2023, 22:13:20
200000000018 May 2033, 03:33:20
Result from the Unix Timestamp Converter on OneHubTools
What the Unix Timestamp Converter gives you.

Seconds or milliseconds?

A timestamp in seconds has 10 digits today. A timestamp in milliseconds has 13 digits. JavaScript's Date.now() returns milliseconds, while most Unix tools and PHP's time() return seconds. If a date comes out in the year 50000, you probably treated milliseconds as seconds. The converter checks the length and picks the right unit for you.

Timestamp to date in code

LanguageGet the current timestamp
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
PHPtime()
MySQLUNIX_TIMESTAMP()

Date to timestamp

Pick a date and time and choose whether it is your local time or UTC. The tool returns the timestamp in seconds and milliseconds. This is useful for setting expiry times in tokens, scheduling jobs or filtering logs by time range.

Time zones and timestamps

A Unix timestamp has no time zone. It always refers to one exact moment. The same number shows as 05:00 in Karachi and 00:00 in London because the converter displays it in different zones. Store times as timestamps or UTC in your systems, and convert to local time only when showing them to people.

Common mistakes

Mixing local time and UTC is the classic bug. A date picked in Karachi and saved as if it were UTC will be five hours off. Another common slip is storing milliseconds in a column that expects seconds, which makes every date land thousands of years in the future. When in doubt, paste the stored value here and see what date it really means.

The year 2038 problem

Old systems store Unix time as a signed 32-bit number, which runs out on 19 January 2038. Modern systems use 64-bit numbers, which last for billions of years. If you maintain old software, check how it stores dates.

Related developer tools

To decode a JSON Web Token and read its exp and iat timestamps, use the JWT decoder. To format API responses, try the JSON formatter. For human dates and durations, the date difference calculator counts days between two dates, and the time zone converter compares local times across cities. Scheduled jobs are easier to write with the cron expression generator.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with real code and data, including edge cases such as empty input and very long values.

Further reading

According to Wikipedia, Unix time counts the seconds since 00:00:00 UTC on 1 January 1970, more than 55 years ago, and it has now passed 1.7 billion seconds.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

What is a Unix timestamp?

It is the number of seconds since 00:00:00 UTC on 1 January 1970, also called epoch time.

How do I convert a timestamp to a date?

Paste the number into the Unix timestamp converter and read the local, UTC and ISO dates.

Is my timestamp in seconds or milliseconds?

Ten digits means seconds; thirteen digits means milliseconds. The tool detects this automatically.

Do timestamps include a time zone?

No. A timestamp is one exact moment. Time zones only matter when you display it.

How do I get a date to timestamp?

Pick the date and time and the tool shows the matching timestamp in seconds and milliseconds.

What happens in 2038?

Old 32-bit systems overflow on 19 January 2038. Modern 64-bit systems are not affected.