Converters
Unix Timestamp Converter
Unix Timestamp Converter is part of Toolspire and is ready as soon as this page loads. Turn Unix timestamps into readable dates in any time zone — and dates back into epoch seconds or milliseconds — with automatic unit detection, every common format and a converter for timestamps inside logs.
On this page
What you can do here
Any unit
Paste a 10, 13, 16 or 19-digit timestamp — the unit is detected for you.
Every time zone
All IANA zones from your browser, with correct offsets for the date, including DST.
Both directions
Epoch to date, and date to epoch — or paste any date text to inspect it.
Developer formats
Excel, LDAP/Active Directory, Chrome history, Apple and Julian timestamps in one place.
Log decoder
Make server logs readable by annotating or replacing every Unix timestamp.
Private
Everything runs in this tab; nothing you paste is sent anywhere.
The sequence
How to convert a Unix timestamp
- 1
Paste the timestamp
Enter it under Timestamp to date — seconds, milliseconds or more are detected automatically.
- 2
Choose a time zone
Pick your zone, UTC or any other, to see the local date and time.
- 3
Copy the format you need
Copy ISO 8601, the readable date or any other format from the list.
Worth knowing
- Unix Timestamp Converter on Toolspire: shows the current Unix time live, in seconds and milliseconds, ready to copy.
- Detects the unit of a timestamp — seconds, milliseconds, microseconds or nanoseconds — and keeps nanosecond precision.
- Converts to ISO 8601, RFC 2822/HTTP date, a readable date and “3 days ago”, in any IANA time zone, with day of the year and ISO week.
- Turns a date and time in any zone back into epoch time, handling daylight-saving changes correctly.
- Also reads and writes Excel serial dates, Windows FILETIME/LDAP, WebKit/Chrome time, Apple Cocoa time and Julian days.
- Finds the 10- and 13-digit timestamps in pasted logs or JSON and adds the date next to each one.
Get the current Unix time in code
| Language | Seconds | Milliseconds |
|---|---|---|
| JavaScript | Math.floor(Date.now() / 1000) | Date.now() |
| Python | int(time.time()) | time.time_ns() // 1_000_000 |
| Java | Instant.now().getEpochSecond() | System.currentTimeMillis() |
| Go | time.Now().Unix() | time.Now().UnixMilli() |
| PHP | time() | (int) (microtime(true) * 1000) |
| C# | DateTimeOffset.UtcNow.ToUnixTimeSeconds() | DateTimeOffset.UtcNow.ToUnixTimeMilliseconds() |
| MySQL | UNIX_TIMESTAMP() | ROUND(UNIX_TIMESTAMP(NOW(3)) * 1000) |
| PostgreSQL | extract(epoch from now())::bigint | (extract(epoch from now()) * 1000)::bigint |
| Bash | date +%s | date +%s%3N |
Notable Unix times
| Timestamp | Date (UTC) | Why it matters |
|---|---|---|
| 0 | 1 January 1970, 00:00:00 | The Unix epoch |
| 1,000,000,000 | 9 September 2001, 01:46:40 | The billionth second |
| 1,234,567,890 | 13 February 2009, 23:31:30 | A famous “counting” moment |
| 2,000,000,000 | 18 May 2033, 03:33:20 | Two billion seconds |
| 2,147,483,647 | 19 January 2038, 03:14:07 | Largest signed 32-bit time — the Year 2038 problem |
FAQ
Questions about Unix Timestamp Converter
Where does Unix Timestamp Converter run?
What is Unix time (epoch time)?
Is my timestamp in seconds or milliseconds?
What is the Year 2038 problem?
How do I convert an Excel date to a timestamp?
Does Unix time change with daylight saving?
Keep going
Related tools
Last updated Report a problem or suggest a feature