Toolivaro

Conversor de timestamp Unix gratis

Convierte entre segundos Unix, milisegundos Unix, ISO 8601 y hora local legible, en vivo y totalmente local.

El conversor de timestamp Unix traduce entre los formatos que los desarrolladores se encuentran de verdad: segundos Unix (10 dígitos), milisegundos Unix (13 dígitos), cadenas ISO 8601 y fechas de calendario corrientes. Escribe o pega cualquiera de las formas y la herramienta rellena todas las demás representaciones a la vez: segundos Unix, milisegundos Unix, la cadena ISO 8601 en UTC, la fecha de calendario y el mismo instante representado en tu zona horaria local y en UTC. Las fechas anteriores a 1970 (timestamps negativos) se gestionan correctamente, los desfases de zona horaria en las cadenas ISO se respetan, y las entradas ambiguas reciben una explicación clara en lugar de una suposición silenciosa. Todo el análisis y el formateo usan el mecanismo Date e Intl de la plataforma, así que los números que ves aquí son los números que calcula tu entorno JavaScript: la herramienta promete fidelidad al motor, no una implementación paralela. Todo se ejecuta localmente en tu navegador; nada de lo que introduzcas se sube, registra ni almacena. Usa esta herramienta cuando una línea de log muestre un valor de 13 dígitos y necesites saber cuándo ocurrió de verdad, cuando una API espere segundos Unix y tu base de datos guarde milisegundos, o cuando un informe de error te dé un timestamp en la zona horaria de otra persona.

Se procesa localmente en tu navegador

Cómo usar esta calculadora

What a Unix timestamp is, and why there are two of them

Unix time counts the seconds since 1970-01-01T00:00:00Z — the epoch — and it is deliberately time-zone-free: the same instant has the same timestamp everywhere on the planet. The confusion starts with scale: the classic 10-digit value is Unix seconds, the number you see in command-line tools, log lines, and most APIs. The 13-digit value is Unix milliseconds, the native form of many databases and of JavaScript’s Date — which stores milliseconds since the epoch and is what the platform returns from Date.now(). The converter detects which you pasted from the digit count and renders every other form at once, so a 13-digit log value that looks like a date in the far future is read correctly instead of misparsed as seconds.

Both forms describe the same instant, which is why the tool always shows seconds and milliseconds side by side: mixing them up is one of the most common timestamp bugs in real systems, and the two-column output makes the mismatch visible immediately. If the seconds column and the milliseconds column disagree about what the time is, the input was the wrong one of the two — read the pair, don’t trust one number alone.

Reading log lines and API values

A log line such as 1761330600000 arrives from a service you do not control. Paste it as-is: the converter detects the 13 digits, reads the value as Unix milliseconds, and reports Unix seconds 1761330600, the ISO 8601 string 2025-10-24T19:50:00.000Z, and the same instant in your local time zone. That last rendering is the one that matters when the log came from a server in another region: the instant is the same everywhere, but 19:50 UTC is a different clock time in Tokyo than it is in Paris, and the tool shows both so the value is never misread as local time.

The converter is also the fastest way to sanity-check an API contract. When an endpoint documentation says the field is Unix seconds but the payload shows a 13-digit value, the discrepancy is visible in one paste — the conversion back to seconds shows whether the number plausibly matches the documented era. The tool accepts negative timestamps for pre-1970 dates (the epoch is a reference point, not a lower bound), and it honors the time-zone offset inside an ISO 8601 string, so 2025-10-24T21:50:00+02:00 and 2025-10-24T19:50:00Z convert to the same timestamp.

Going from a date to a timestamp

In the other direction, type or paste a calendar date and the converter returns the Unix seconds and milliseconds for that instant, using your local time zone unless the input itself carries an offset. This is the direction to check before you write code that needs a hard-coded deadline, a scheduled job, or an expiry: the value you compute here is exactly what new Date(...).getTime() ÷ 1000 will produce in the browser, because the tool uses the platform’s own Date and Intl machinery rather than a parallel implementation. That engine-fidelity promise cuts both ways: what you see here is what your runtime computes, including any quirks in how lenient date strings are parsed, so ISO 8601 and numeric inputs are the reliable forms and the tool says so in its limitations.

The limits of the format

A Unix timestamp describes an instant — it says nothing about calendar arithmetic, time-zone abbreviations, or rules like daylight saving. Converting between instants is what the epoch is for; figuring out "9am in the meeting organizer’s time zone" is a different problem, and the converter does not pretend to solve it. Values far outside the platform’s safe range are rejected with a clear error rather than wrapped, and the tool is deliberately local: timestamps from logs and bug reports often sit inside sensitive data, and nothing you paste here is uploaded, logged, or stored.

¿Cómo se calcula el resultado?

Un valor de 13 dígitos de una línea de log

Una línea de log contiene 1761330600000. El conversor detecta 13 dígitos, lo interpreta como milisegundos Unix e informa: segundos Unix 1761330600, ISO 2025-10-24T19:50:00.000Z, y el mismo instante representado en tu zona horaria local.

Entrada y resultado del ejemplo
Entrada Valor
value 1761330600000
Resultado 2025-10-24T19:50:00.000Z · segundos Unix 1761330600 · hora local mostrada

¿Cuál es la fórmula y sus supuestos?

Tiempo Unix

unixSeconds = milliseconds ÷ 1000 (from 1970-01-01T00:00:00Z)

Términos de la fórmula
Símbolo Significado
unixSeconds segundos enteros desde la época Unix, en UTC
milliseconds el valor Date de la plataforma en milisegundos

Las entradas de 10 dígitos son segundos; las de 13 dígitos, milisegundos: la herramienta detecta ambas.

ISO 8601 / RFC 3339

iso = date.toISOString()

Términos de la fórmula
Símbolo Significado
toISOString representación UTC como YYYY-MM-DDTHH:mm:ss.sssZ

Las representaciones en hora local usan la zona horaria del sistema del visitante mediante Intl.

¿Cuáles son los errores más comunes?

  • Confundir los segundos de 10 dígitos con los milisegundos de 13: el error de timestamp más común con diferencia.
  • Leer un timestamp UTC como hora local (o al revés) cuando el valor procede de otra zona horaria.
  • Suponer que la época empieza a la medianoche local: la época es 1970-01-01T00:00:00Z, no la medianoche local.
  • Pegar timestamps en un conversor web que los sube: esta herramienta es totalmente local.

¿Cuáles son los supuestos y las limitaciones?

  • El análisis usa el mecanismo Date de la plataforma: las fechas más allá del rango de enteros seguros o muy fuera del rango admitido por la plataforma se rechazan con un error claro.
  • Las cadenas de fecha demasiado flexibles pueden analizarse de forma distinta según el entorno; ISO 8601 y las entradas numéricas son las formas fiables.
  • La herramienta convierte instantes: no interpreta abreviaturas de zona horaria ni hace aritmética de calendario.

¿De dónde salen los números?

Última revisión 5 de agosto de 2026 · Versión 1.0.0 · Toolivaro no garantiza el contenido externo.

Preguntas frecuentes

10 dígitos o 13 dígitos: ¿cuál es la diferencia?

Los segundos Unix son el clásico valor de época de 10 dígitos; muchos sistemas y bases de datos modernos guardan 13 dígitos de milisegundos Unix. La herramienta detecta la longitud y convierte en consecuencia: confundir ambos es uno de los errores de timestamp más comunes, y la salida muestra las dos formas para que lo detectes.

¿Por qué la hora local difiere de la hora UTC?

Un timestamp Unix es el mismo instante en todas partes; la representación local aplica la zona horaria de tu sistema. La herramienta muestra las formas UTC y local para que un timestamp de otra zona horaria nunca se lea mal.

¿El conversor maneja fechas anteriores a 1970?

Sí. Los segundos Unix negativos (por ejemplo, -86400, que es 1969-12-31) se analizan y representan correctamente: la herramienta no asume que la época sea un límite inferior.

Why does the ISO output end in Z, and what does it mean?

The Z marks UTC — the instant expressed in the universal time zone, with no offset applied. The local rendering next to it shows the same instant in your system’s zone; the two describe one moment, which is exactly the point of the side-by-side view.

What is the largest date the converter accepts?

The platform’s Date machinery covers roughly ±100 million days from the epoch — effectively any real-world timestamp. Values beyond that range are rejected with a clear error instead of being wrapped around or silently misread.

Parte de Herramientas de tiempo, fechas y programación

¿Encontraste un error o tienes una corrección? Repórtalo: revisamos cada corrección.

¿Te ha sido útil?

Revisado por el equipo editorial de Toolivaro según nuestra metodología Metodología · Política editorial