Milliseconds Converter
Convert milliseconds to a date, and back
The 13-digit form — what `Date.now()`, `System.currentTimeMillis()` and most of Java and JavaScript speak — converted both ways, with the seconds value beside it.
Questions people ask
The things that come up about milliseconds converters, answered plainly.
How do I convert milliseconds to seconds?
Divide by 1000 and floor it — do not round, or a timestamp can land one second in the future. The page shows both values so you can copy whichever the receiving system wants.
Why does JavaScript use milliseconds?
Because `Date` was modelled on Java's, which chose milliseconds in 1995. It is why passing a JavaScript timestamp to a Unix API without dividing produces a date in the year 45,000 or so.
Related tools
Seconds, milliseconds, microseconds and nanoseconds, in both directions.
Microseconds ConverterThe 16-digit form — PostgreSQL internals, ClickHouse, Python's `time_ns() / 1000`, and Chrome's own clock, which counts from 1601 instead.
Unix Timestamp ConverterPaste a timestamp and get the date; paste a date and get the timestamp. The precision is detected from the digit count and shown so you can override it, and a number that is not Unix time is checked against the other eleven epochs too.
Timestamp to DateOne field, one answer — the timestamp as a date and time in your zone, in UTC, and in about thirty other encodings you might need to paste somewhere.
Nanoseconds ConverterThe 19-digit form — Go's `UnixNano`, Prometheus, InfluxDB, OpenTelemetry — with a warning about the precision JavaScript quietly loses on the way.