Skip to content
gohacks.dev
Tooling

Batch Timestamp Converter

Convert a list of Unix timestamps in seconds, milliseconds, microseconds or nanoseconds, or date strings, to UTC and a time zone of your choice in one go.

Free · No sign-up · Your inputs stay in your browser

Input

Convert many Unix timestamps at once

Output

6 values

InputRead asUTCEurope/London
1759309200seconds2025-10-01T09:00:00.000Z...
1759309200123milliseconds2025-10-01T09:00:00.123Z...
1759309200123456microseconds2025-10-01T09:00:00.123Z...
2026-10-01T09:00:00Zdate string2026-10-01T09:00:00.000Z...
Wed, 01 Oct 2026 09:00:00 GMTdate string2026-10-01T09:00:00.000Z...
0seconds1970-01-01T00:00:00.000Z...

Unit detection by digit count works for any date between 2001 and 2286: 10 digits are seconds, 13 milliseconds (JavaScript, Java), 16 microseconds (PostgreSQL, Python's time.time_ns() / 1000) and 19 nanoseconds (Go, Prometheus). The local time comes from the browser's time-zone database, daylight saving included.

Runs in this browser. Nothing you paste is sent to a server.

Units by length

The digit count tells the unit for any date between 2001 and 2286. Unix and PHP's time() use seconds, JavaScript and Java milliseconds, PostgreSQL's internal timestamps and many tracing systems microseconds, and Go's UnixNano and Prometheus' internals nanoseconds. Mixing them up gives dates in 1970 or in the year 50,000.

Time zones

Local times use the browser's IANA time zone database, so daylight saving changes are applied for the date in question rather than today's offset. The single-value Unix timestamp converter shows more detail per value.

Share

Frequently asked questions

Why does my timestamp convert to 1970?
It is in seconds but was read as milliseconds, or the value is near zero. Check the digit count against the expected unit.
Does it handle negative timestamps?
Yes. Negative values are dates before 1 January 1970 UTC.
Is what I paste sent anywhere?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is sent to our server or stored.

Keep planning

Similar tools