Unix Timestamp Converter & Epoch Clock
Convert epoch seconds, milliseconds, microseconds or nanoseconds into readable dates across 18 time zones, and turn any date back into a timestamp, entirely in your browser.
Timestamp Conversion Workspace
Paste an epoch value or ISO date, pick a unit and time zone, then copy any representation.
| Language | Current timestamp | Timestamp → date |
|---|---|---|
| JavaScript | Math.floor(Date.now() / 1000) | new Date(ts * 1000).toISOString() |
| Python | int(time.time()) | datetime.fromtimestamp(ts, tz=timezone.utc) |
| PHP | time() | date('c', $ts) |
| Go | time.Now().Unix() | time.Unix(ts, 0).UTC() |
| Java | Instant.now().getEpochSecond() | Instant.ofEpochSecond(ts) |
| PostgreSQL | EXTRACT(EPOCH FROM now())::bigint | to_timestamp(ts) |
| MySQL | UNIX_TIMESTAMP() | FROM_UNIXTIME(ts) |
| Shell | date +%s | date -u -d @ts |
Input: 1794825604 Unit: s ISO 8601: 2026-11-16T10:40:04.000Z UTC: Mon, 16 Nov 2026 10:40:04 GMT UTC: Mon, 16 Nov 2026, 10:40:04 UTC Seconds: 1794825604 Milliseconds: 1794825604000
Why Engineers Use the Agenvix Epoch Converter
Built for log forensics, API debugging and database migrations where unit mistakes are expensive.
Unit Auto-Detection
Digit-length heuristics tell seconds from milliseconds, microseconds and nanoseconds, with a manual override when you know better.
Multi-Zone Rendering
See the same instant in UTC, your local zone and 16 major IANA zones with correct daylight-saving offsets from the Intl API.
Bidirectional
Convert dates back into epoch seconds and milliseconds, choosing whether the date you typed is local time or UTC.
Nothing Leaves the Tab
All arithmetic runs in client-side JavaScript. Timestamps from production logs are never uploaded or logged.
Simple as 1-2-3
How the Timestamp Converter Works
From raw number to readable date in three local steps.
Paste the Value
Drop in 1700000000, 1700000000000, a negative pre-1970 value or an ISO 8601 string. Separators and whitespace are ignored.
Confirm the Unit
The tool detects seconds vs milliseconds by digit count. Override it if a system stores microseconds in a short field.
Copy Any Format
Grab ISO 8601, RFC 2822, a zoned string, the relative phrase, or the epoch in every unit for your code or ticket.
Technical Specifications
What the Agenvix epoch converter supports compared with typical online converters.
| Feature / Specification | Best Use Case | Engine / Output Standard | Privacy & Security | Performance Rating | Action |
|---|---|---|---|---|---|
| Seconds / ms / µs / ns | Logs, JS Date.now(), Go, Java | Auto-detected by digit count | 100% Local | Full | |
| Negative timestamps | Dates before 1970 | Signed 64-bit range | 100% Local | Supported | |
| Year 2038 detection | 32-bit systems & embedded | Flags values > 2147483647 | 100% Local | Warned | |
| IANA time zones | Distributed teams | Intl.DateTimeFormat | Browser Data | 18 Zones | |
| Date → timestamp | Seeding databases & APIs | Local or UTC interpretation | 100% Local | Bidirectional | |
| Leap seconds | Scientific timekeeping | Ignored per POSIX | Standard | By Design |
Understanding Unix Time
1. What a Unix timestamp actually counts
Unix time (also called epoch time or POSIX time) is the number of seconds elapsed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. Because it is a single integer with no time zone attached, the same value means the same instant on every machine on Earth. Time zones only enter the picture when a timestamp is formatted for a human, which is why this converter renders one input in UTC, your local zone and any IANA zone you pick.
2. Seconds versus milliseconds
The most common bug is a unit mismatch. Unix tools, Python, PHP and most SQL databases use seconds (10 digits today), while JavaScript, Java and many REST APIs use milliseconds (13 digits). Passing milliseconds where seconds are expected yields a date around the year 55,000; passing seconds where milliseconds are expected yields January 1970, which looks like a missing value and is often silently accepted.
- 10 digits → seconds (e.g. 1794825604)
- 13 digits → milliseconds (e.g. 1794825604000)
- 16 digits → microseconds, 19 digits → nanoseconds
3. The Year 2038 problem
Systems that store Unix time as a signed 32-bit integer overflow at 03:14:07 UTC on 19 January 2038 (2,147,483,647 seconds). Modern operating systems use 64-bit time, but embedded devices, legacy file formats and INT columns in old database schemas are still affected. The converter flags any value beyond the 32-bit limit so migrations can be planned before the clock runs out.
4. Getting the current epoch in code
Every language exposes the current timestamp: Math.floor(Date.now() / 1000) in JavaScript, int(time.time()) in Python, time() in PHP, time.Now().Unix() in Go and date +%s in a POSIX shell. The snippet table inside the workspace lists the matching conversion call for each platform so you can move between the converter and your editor without guessing.
Everything you need to know about Unix Timestamps
Straight answers on units, time zones, negative values and the 2038 limit.
How do I convert a Unix timestamp to a date?
Paste the number into the converter. Ten-digit values are treated as seconds and thirteen-digit values as milliseconds, then the instant is rendered as ISO 8601, RFC 2822, local time and your chosen time zone. In code, multiply seconds by 1000 and pass the result to new Date() in JavaScript, or use datetime.fromtimestamp() in Python.
Is a Unix timestamp in UTC or local time?
Neither. It is a count of seconds since the epoch and carries no zone at all. UTC and local time are only applied when the number is formatted for display, which is why the same timestamp shows different wall-clock times in different zones.
Why does my timestamp have 13 digits?
It is in milliseconds. JavaScript Date.now(), Java System.currentTimeMillis() and many APIs emit milliseconds. Divide by 1000 (integer division) to get classic seconds, or leave the unit on Auto and the converter detects it.
Can a Unix timestamp be negative?
Yes. Negative values represent instants before 1 January 1970. For example -86400 is 31 December 1969 00:00:00 UTC. The converter accepts negative seconds and milliseconds.
What happens in January 2038?
Signed 32-bit integers overflow after 2147483647 seconds, which is 19 January 2038 03:14:07 UTC. Systems still using 32-bit time_t will wrap to December 1901. The tool highlights any value past that limit.
Does Unix time include leap seconds?
No. POSIX defines every day as exactly 86,400 seconds, so when a leap second is inserted the Unix clock repeats or smears a second. For everyday application timestamps this is irrelevant, but it matters for astronomy and precise interval measurement.
How do I convert a date back into a timestamp?
Switch to the Date to Timestamp tab, pick the date and time, and choose whether the value you entered is local time or UTC. The tool outputs the epoch in seconds and milliseconds, ready for a database insert or API payload.
Is my data sent to a server?
No. Detection, conversion and time-zone formatting all run inside your browser with the standard Date and Intl APIs. Nothing is transmitted or stored by Agenvix.
Related Developer Utilities
Discover companion utilities engineered for zero-log speed and browser-side execution.
Discord Time Converter
Convert timestamps into Discord dynamic markdown formats (<t:unix:R>).
Date Difference Calculator
Count days, weeks, months and business days between two dates, or add and subtract days from a date.
Cron Expression Builder
Validate five field cron schedules, read them in plain English and preview the next ten run times.
Chronological Age Calculator
Calculate exact age down to years, months, days, total hours, and seconds.
Number Base Converter
Convert between binary, octal, decimal, hex and base36 with exact BigInt math.
JSON Formatter & Validator
Prettify, format, repair syntax errors, and convert raw JSON data strings into trees.
More in Time & Date
Specialized utilities within the same technical domain
