SupperTools

Useful Online Tools & Utilities to Make Everyday Tasks Easier.

Timestamp Converter Between Unix Time and Real Dates

Translate Unix timestamps into readable dates and times, and convert dates back into epoch seconds for databases, log files, APIs and debugging work.

Human Readable Time Seconds
1 minute 60 seconds
1 hour 3600 seconds
1 day 86400 seconds
1 week 604800 seconds
1 month 2629743 seconds
1 year 31556926 seconds





Computers rarely store dates the way people write them. Databases, log files and APIs prefer a single number: the Unix timestamp, a count of seconds since a fixed moment in 1970. A timestamp converter translates that number back into a readable date and time, and converts ordinary dates into timestamps, so the two worlds can talk to each other without anyone doing epoch arithmetic in their head.

The Epoch: Where the Counting Starts

The Unix timestamp counts the seconds elapsed since 00:00:00 UTC on 1 January 1970, an instant known as the epoch. Every moment since then has a number: the timestamp grows by one each second, in every country, regardless of time zones or daylight saving. That universality is why systems love it. There is no ambiguity about which "3 o'clock" is meant, no month names to translate, and sorting a list of timestamps automatically sorts events in time order.

The price of that neatness is readability. A value like 1700000000 means nothing to a person until a converter turns it into Tuesday, 14 November 2023, 22:13:20 UTC. Converting in the other direction matters just as much when you need to query a database for "everything after midnight on the first of the month" and the column only accepts a number.

Features of This Timestamp Converter

  • Converts a Unix timestamp into a full human-readable date and time.
  • Converts a date and time back into its Unix timestamp.
  • A Convert button performs the translation, and Copy grabs the result for your code, query or notes.
  • Works with the seconds-based timestamps used across Unix, Linux, web APIs and most programming languages.
  • Lets you sanity-check values from logs and databases against the moments you remember.

If instead of a database value you need the length of a period or a simple unit swap, the plain time converter handles durations without the epoch involved.

How to Convert a Timestamp

  1. Copy the timestamp from your log, database or API response.
  2. Paste it into the converter's timestamp field.
  3. Click Convert to see the corresponding date and time.
  4. Check the result against the event you are investigating; confirm it lands in the right day and hour.
  5. To go the other way, enter a date and time and convert it into a timestamp.
  6. Use Copy to take the converted value straight into your work.

A Worked Example, and the Millisecond Trap

Take the timestamp 1700000000. Converting it gives 14 November 2023 at 22:13:20 UTC. Now the trap that catches every developer once: many JavaScript timestamps are in milliseconds, not seconds, so the same moment appears as 1700000000000. Paste a 13-digit millisecond value into a seconds-based converter and you get a date tens of thousands of years in the future. The rule of thumb is simple: 10 digits means seconds, 13 digits means milliseconds; divide or multiply by 1,000 to move between them. Checking the digit count before converting prevents nearly every "impossible date" bug. When the people reading your findings are in several countries, the world clock helps you present that UTC moment in each local time.

Timestamp Pitfalls Worth Knowing

  • UTC versus local time. A timestamp itself is zone-free; the date it converts into depends on the zone used for display. Always note whether a result is UTC or local before quoting it in a report.
  • Negative timestamps exist. Moments before 1970 are represented by negative numbers, which matter for historical dates and birth dates in older records.
  • The 2038 limit is real for old systems. A signed 32-bit integer overflows at 2,147,483,647, which lands on 19 January 2038. Modern 64-bit systems are unaffected, but embedded and legacy software still carries the risk.
  • Leap seconds are ignored. Unix time pretends every day has exactly 86,400 seconds, so timestamps stay simple even though the Earth's rotation does not cooperate perfectly.

You meet timestamps in places you might not expect. The expiry claim inside a login token is a Unix timestamp, which is why decoding one instantly tells you when a session really ends. Photo and file systems record creation moments that tools translate from epoch values, and the ordering of every log file you have ever read is just timestamps sorted ascending. Whenever a system shows you a ten-digit number where a date should be, this converter is the translator standing between the machine's bookkeeping and your understanding of events.

Timestamp Questions Developers Ask

What is the current Unix timestamp?

It increases by one every second, so it is different each time you look. The converter can show the present value; as a rough guide, timestamps in the mid-2020s begin with 17 and run to ten digits.

Why does my timestamp convert to a date in 1970?

Almost certainly a units mismatch or a missing value. A timestamp of zero is exactly the epoch, and small numbers land in the first days of 1970. Check that you pasted the full value and the right unit.

How do I convert milliseconds to seconds?

Divide by 1,000. Milliseconds have 13 digits for current dates; seconds have 10. Multiply seconds by 1,000 to go the other way.

Are timestamps affected by time zones?

The number itself is not: it refers to one absolute moment worldwide. Time zones only change how that moment is written as a local date and time when displayed.

What timestamp format do APIs usually return?

Most return seconds since the epoch as a plain integer, though JavaScript-based systems often use milliseconds. The documentation of the specific API is the deciding source; the digit-count check resolves most doubt.

Making Computer Time Readable

A timestamp converter is the dictionary between how computers file time and how people understand it. Seconds since 1970 go in one side, a recognisable date comes out the other, and log files, databases and API responses become readable evidence instead of strings of digits.

Related Tools