Unix Timestamp Converter
Convert Unix seconds, milliseconds, local dates, and ISO 8601 values directly in your browser.
Live browser time
Current Unix Time
Updates once per second using your browser clock.
- Seconds
—- Milliseconds
—- Browser timezone
—
All timestamp and date conversions happen locally in your browser.
Overview
What is a Unix timestamp?
A Unix timestamp represents time elapsed since the Unix epoch at1970-01-01T00:00:00Z. It gives software a compact numeric way to represent an absolute instant independently of a human-readable calendar format.
Traditional Unix time counts seconds, while JavaScript and many modern systems commonly work with milliseconds.
Units
Unix timestamp seconds vs milliseconds
Seconds count one unit per second after the epoch. Milliseconds count one thousand units per second. A contemporary seconds value is often around 10 digits and a milliseconds value around 13 digits, but digit count is only a common pattern, not the definition.
This converter always uses the unit selected in the interface and never relies on digit count alone.
Terminology
What is epoch time?
Epoch time is a numeric time representation measured from a defined reference instant. In everyday development, “epoch time” often means Unix time measured from the Unix epoch, although other systems can define different epochs.
Steps
How to convert Unix time to a date
- Enter the Unix timestamp.
- Select whether the value is in seconds or milliseconds.
- Select Convert to Date.
- Review UTC, browser local time, ISO 8601, seconds, and milliseconds.
Steps
How to convert a date to Unix time
- Choose a date and time in the local date-time field.
- Remember that
datetime-localcontains no timezone information. - Select Convert to Timestamp.
- Copy the seconds, milliseconds, or ISO 8601 result as needed.
ISO 8601
How to convert ISO 8601 to Unix time
- Enter a calendar date such as
1970-01-01, or a date-time withZor a numeric UTC offset. - Select Convert ISO 8601, or press Enter.
- Review the normalized UTC value, browser-local display, Unix seconds, and Unix milliseconds.
- Copy the representation required by your application or API.
For example, 2023-11-15T06:13:20+08:00 and2023-11-14T22:13:20Z represent the same instant.
Supported syntax
ISO 8601 input scope and timezone rules
ISO 8601 defines a broad family of representations. This converter deliberately supports calendar dates in YYYY-MM-DD form and the common Internet date-time profileYYYY-MM-DDTHH:mm:ssZ, including fractional seconds and numeric offsets such as+08:00 or -05:00.
A date-only value is interpreted as midnight UTC. A date-time without a timezone is rejected because it does not identify an unambiguous instant; use the Local Date & Time field when the browser timezone should be used. Week dates, ordinal dates, durations, intervals, and leap seconds are not supported.
Timezone
Unix time and time zones
A Unix timestamp identifies an absolute instant and does not carry a timezone. UTC and local time are different formatted representations of that same instant. Local Time on this page uses the timezone configured by your browser or device.
Example
Unix timestamp example
0 seconds converts to 1970-01-01T00:00:00.000Z.
A fixed modern example, 1700000000 seconds, converts to2023-11-14T22:13:20.000Z.
Debugging
How to tell seconds from milliseconds
Current Unix seconds commonly have about 10 digits and current Unix milliseconds about 13, but digit count is only a heuristic. Historical dates, far-future dates, decimals, and application-specific values can break that assumption.
The input displays a non-authoritative hint while the selected unit remains decisive. If a conversion lands thousands of years away from the expected date, check the unit first.
Before 1970
Negative Unix timestamps
Negative Unix values represent dates before the epoch. For example, -1 second converts to 1969-12-31T23:59:59.000Z. This converter accepts finite negative values.
Compatibility
What is the Year 2038 problem?
A signed 32-bit Unix seconds field reaches its maximum value in January 2038. Systems that still use that representation can overflow. JavaScript Date uses a different numeric date model and is not limited to signed 32-bit Unix seconds, although it still has a finite range.
Related format
Unix timestamps in JWT claims
JWT exp, iat, and nbf claims commonly use NumericDate values expressed as Unix seconds. Use the JWT Decoderto inspect those claims before converting a value here.
Workflows
Common timestamp conversion use cases
- Translate API or database epoch values into readable UTC and local times.
- Compare seconds and milliseconds when an integration shows an unexpected date.
- Normalize ISO 8601 values with different offsets to one UTC representation.
- Create Unix values for tests, scheduled events, logs, or expiration fields.
- Inspect JWT NumericDate claims alongside their original integer values.
FAQ
Frequently asked questions
What is a Unix timestamp?
A Unix timestamp represents elapsed time since 1970-01-01T00:00:00Z. It is commonly stored as seconds or milliseconds relative to that epoch.
What is the Unix epoch?
The Unix epoch is the reference instant 1970-01-01T00:00:00Z from which Unix time is counted.
Are Unix timestamps in seconds or milliseconds?
Both forms are common. Traditional Unix time generally uses seconds, while JavaScript and many APIs use milliseconds. The unit must be known explicitly; digit count is only a common clue.
Can I convert ISO 8601 to a Unix timestamp?
Yes. Enter YYYY-MM-DD for UTC midnight, or an ISO 8601 date-time with Z or a numeric UTC offset. The converter returns normalized ISO 8601, UTC, local time, Unix seconds, and Unix milliseconds.
Why must an ISO 8601 date-time include a timezone?
A date-time without Z or a numeric offset does not identify one unambiguous instant. Use the Local Date & Time field when you intentionally want the browser timezone to supply that missing context.
Does this tool support every ISO 8601 representation?
No. It supports the common YYYY-MM-DD calendar date and RFC 3339-style date-times with seconds, an optional fractional second, and an explicit Z or numeric offset. Week dates, ordinal dates, durations, intervals, and leap-second notation are outside this tool’s scope.
Do Unix timestamps have a timezone?
No. A Unix timestamp represents an absolute instant. A timezone is applied only when that instant is formatted as a human-readable date and time.
Can Unix timestamps be negative?
Yes. Negative timestamps represent instants before the Unix epoch. For example, -1 second is 1969-12-31T23:59:59.000Z.
Why is my timestamp showing the wrong date?
Check whether the value is seconds or milliseconds and confirm whether you are reading the UTC or local representation. Selecting the wrong unit causes a substantially different date.
What is the Year 2038 problem?
Some systems store Unix seconds in a signed 32-bit integer that overflows in January 2038. JavaScript Date is not restricted to a signed 32-bit seconds field.
Does this converter upload my data?
No. Timestamp and date conversions use browser Date and Intl APIs locally and are not sent to a server or third-party time service.