inicio/dev/timestamp

Unix Timestamp Converter Online

Convert timestamps to dates

Cómo usar Marca de Tiempo Unix

  1. 1

    Enter a timestamp or date

    Paste a Unix timestamp to convert to a date, or pick a date to get its timestamp.

  2. 2

    Choose precision

    Toggle between seconds (10-digit) and milliseconds (13-digit).

  3. 3

    Copy result

    Copy the converted value to use in your code or documentation.

Preguntas frecuentes

Is my data safe?
Yes. All processing happens entirely in your browser. Your data never leaves your device and is never uploaded to any server.
What is a Unix timestamp?
A Unix timestamp is the number of seconds (or milliseconds) that have elapsed since January 1, 1970 00:00:00 UTC, also called the Unix epoch. It is the most common way to represent dates in programming and databases because it is timezone-agnostic and easy to do arithmetic on.
Why does my timestamp have 13 digits instead of 10?
Timestamps with 13 digits are in milliseconds, which is what JavaScript's Date.now() returns. Timestamps with 10 digits are in seconds, which is the standard POSIX/Unix format used by most other languages and systems. Toggle the precision setting accordingly.
What is the maximum date a Unix timestamp can represent?
In 32-bit systems, Unix timestamps overflow on January 19, 2038 (the Y2K38 problem). JavaScript uses 64-bit floating point, so Date can represent dates far beyond that — up to approximately year 275,760.
Does the converter account for daylight saving time?
Yes. When converting a timestamp to local time, JavaScript's Date object automatically applies your system's DST rules. Timestamps are always stored in UTC internally, so the conversion is unambiguous.

Saber más

¿Qué es Unix Timestamp?

Convert Unix timestamps to human-readable dates and times, or convert any date and time back to a Unix timestamp. Supports both seconds (standard Unix time) and milliseconds (JavaScript Date.now() format). Displays the current timestamp live so you can copy it instantly for logging or API calls. Shows conversions in UTC and local time side by side. Essential for debugging API logs, inspecting database records, and working with time-based data in any programming language.

¿Por qué usar Unix Timestamp?

  • Live current timestamp — see the current Unix time in seconds and milliseconds, updated every second.
  • Bidirectional conversion — paste any timestamp to get the date, or pick any date to get its timestamp.
  • Shows both UTC and local time — eliminates the guesswork when working across timezones.
  • Supports seconds and milliseconds — covers both POSIX timestamps and JavaScript Date.now() values.
  • Completely private — no data is sent anywhere. Use it freely for debugging logs with sensitive information.

Casos de uso de Unix Timestamp

API log debugging

API logs and webhook payloads often include Unix timestamps. Paste a timestamp to instantly see when an event occurred without writing conversion code.

Database record inspection

Many databases store dates as Unix timestamps (created_at, updated_at). Convert them to readable dates while reviewing records in a database client.

Expiration time validation

Check whether a token, session, or cache entry has expired by converting its expiration timestamp to a date and comparing to now.

Cross-timezone date handling

When working with distributed systems that store dates in UTC, use the converter to see what a UTC timestamp corresponds to in your local timezone.

Consejos y buenas prácticas

  • 💡JavaScript uses milliseconds (Date.now() returns 13 digits). Most other languages use seconds (10 digits). If your timestamp looks wrong, toggle between seconds and milliseconds.
  • 💡Unix epoch (timestamp 0) is January 1, 1970 00:00:00 UTC. Negative timestamps represent dates before 1970.
  • 💡Use the current timestamp as a quick uniqueness seed in test data — combine it with a random number for a lightweight unique ID.
  • 💡Be careful with daylight saving time: 'midnight on March 15' in a local timezone may be a different UTC time depending on the time of year.

Cómo funciona

Timestamp-to-date conversion uses JavaScript's new Date(timestamp) constructor, which accepts milliseconds. For second-precision timestamps, the value is multiplied by 1000 before passing to the Date constructor. The resulting Date object is formatted using toISOString() for UTC display and toLocaleString() for local time. Date-to-timestamp conversion uses Date.parse() for the input date string and divides by 1000 for second precision. The live timestamp is updated using setInterval() every 1000 ms, reading Date.now() each tick.