
This Unix timestamp converter turns epoch values into readable dates and back: 10-digit seconds, 13-digit milliseconds, microseconds, nanoseconds, ISO 8601 strings, and the Windows FILETIME and LDAP timestamps found in Active Directory and event logs. Paste a value and the unit is detected from its length; every row shows UTC, your local time zone, the ISO week number and day of year. Log timestamps can identify systems and incidents, so conversion happens in your browser.
Which systems use millisecond timestamps?
JavaScript (Date.now()), Java (System.currentTimeMillis()), Kafka, Elasticsearch, MongoDB and most JSON APIs use milliseconds since 1970, which gives 13-digit values today.
If a date shows up in 1970, a seconds value was read as milliseconds; if it shows the year 57,000, milliseconds were read as seconds. The converter detects 13 digits automatically, and the unit buttons fix edge cases such as very old or far-future dates.
How do you convert milliseconds to a date in code?
JavaScript: new Date(1767225600000).toISOString(). Python: datetime.fromtimestamp(ms / 1000, tz=timezone.utc). Java: Instant.ofEpochMilli(ms).
Spreadsheets need a formula: in Excel or Google Sheets, =ms/86400000 + DATE(1970,1,1) gives a UTC date serial you can format as a date and time.
Also searched as: ms to date, convert milliseconds to date, 13 digit timestamp.
What is a Unix timestamp?
A Unix timestamp is the number of seconds since 1970-01-01 00:00:00 UTC (the Unix epoch), ignoring leap seconds. It is the same everywhere, which makes it the standard for logs, databases and APIs.
Because the count is in UTC, 1767225600 is 2026-01-01 00:00:00 UTC no matter where the server runs; only the display changes with the time zone. Signed 32-bit counters overflow at 2147483647, which is 2038-01-19 03:14:07 UTC (the Year 2038 problem). Modern systems store 64-bit values and are unaffected.
How it works: Unix Timestamp Converter
How do you convert a Unix timestamp to a date?
Multiply seconds by 1,000 and pass the result to a date library, or use date -d @1767225600 on Linux; this converter does it as you type and shows UTC and local time side by side.
The common mistake is mixing units. JavaScript Date.now(), Java System.currentTimeMillis() and most JSON APIs use milliseconds (13 digits), while Unix tools, Python time.time() and PostgreSQL extract(epoch …) use seconds (10 digits). Read a millisecond value as seconds and you land in the year 57,000; read seconds as milliseconds and you land in January 1970. The unit buttons let you override auto-detection when a value is ambiguous.
- 10 digits: seconds (Unix, Python, Go
Unix()). - 13 digits: milliseconds (JavaScript, Java, Elasticsearch).
- 16 digits: microseconds (PostgreSQL internals, Chrome history).
- 19 digits: nanoseconds (Go
UnixNano(), InfluxDB, Kubernetes). - 18 digits starting with 13: Windows FILETIME or LDAP (100 ns since 1601).
How do you convert a Windows FILETIME or LDAP timestamp?
Divide by 10,000,000 to get seconds since 1601-01-01, then subtract 11,644,473,600 to reach the Unix epoch. AD attributes such as lastLogonTimestamp, pwdLastSet and accountExpires use this format.
FILETIME counts 100-nanosecond intervals since the start of 1601 UTC. 133801632000000000 therefore becomes 2025-01-01 00:00:00 UTC. The converter uses BigInt arithmetic so 18-digit values keep full precision. An accountExpires value of 9223372036854775807 or 0 means "never" and is not a real date.
How many weeks into the year are we?
Use the ISO 8601 week number: weeks start on Monday and week 1 is the week containing the year's first Thursday, so most years have 52 weeks and some have 53.
Every conversion shows the ISO week (for example 2026-W47) and the day of the year. Note that the ISO week-year can differ from the calendar year near New Year: 2027-01-01 falls in week 53 of 2026. Spreadsheet WEEKNUM() uses a different, US-style rule unless you pass the ISO mode (ISOWEEKNUM).
Epoch and timestamp reference values
| Value | Meaning (UTC) |
|---|---|
| 0 | 1970-01-01 00:00:00, the Unix epoch |
| 1000000000 | 2001-09-09 01:46:40 |
| 1767225600 | 2026-01-01 00:00:00 |
| 2147483647 | 2038-01-19 03:14:07, signed 32-bit limit |
| 1767225600000 | 2026-01-01 00:00:00 in milliseconds |
| 116444736000000000 | 1970-01-01 as Windows FILETIME |
| 133801632000000000 | 2025-01-01 as FILETIME / LDAP |
Notable timestamps for checking conversions
Command-line examples
Linux: epoch to date and back
date -u -d @1767225600
date -u -d "2026-01-01" +%smacOS (BSD date)
date -u -r 1767225600PowerShell: LDAP / FILETIME to date
[datetime]::FromFileTimeUtc(133801632000000000)Frequently asked questions
Paste the 13-digit value here, or use new Date(ms) in JavaScript. Divide by 1,000 for tools that expect Unix seconds.
Related tools
- Cron VisualizerTranslate five-field cron expressions to plain English and preview the next runs in UTC and local time.
- Log DeobfuscatorDecode Base64, PowerShell, hex, URL and gzip with auto-detect, plus text-to-binary, dec-to-hex and an ASCII table.
- PCAP & HAR AnalyzerOpen PCAP, PCAPNG, HAR and EVTX files in the browser: packet table, decoder, tcpdump output, HAR sanitizer and triage.