Unix Timestamp Converter
Convert Unix timestamps to readable dates and turn dates into Unix time. View UTC and local time, switch between seconds and milliseconds, and copy the results with this free online converter.
What Is a Unix Timestamp?
A Unix timestamp represents a point in time as the number of seconds elapsed since January 1, 1970, at 00:00:00 UTC. This starting point is known as the Unix epoch. Unix timestamps are widely used in application logs, APIs, databases, scheduled jobs, and software systems.
Unlike a formatted date, a Unix timestamp does not contain a time zone. The same timestamp represents the same instant worldwide; only its human-readable local representation changes.
How to Use the Unix Timestamp Converter
- Convert a timestamp: Enter an integer in the Timestamp to Date field. Select the unit manually if you know it, or leave Auto-detect selected.
- Review the results: The tool can display Unix seconds, Unix milliseconds, ISO 8601, relative time, and other date details.
- Choose a time display: View UTC, your browser’s local time, or both.
- Convert a date: Choose a date and time in the Date to Timestamp panel. Specify whether the entered date represents local time or UTC, then select Convert Date.
- Copy a value: Use the Copy button beside an output to copy that value to your clipboard.
Unix Timestamp Units: Seconds vs. Milliseconds
Unix timestamps are commonly expressed in seconds, while JavaScript’s
Date.now() returns milliseconds. Some systems also store
microseconds or nanoseconds. Choosing the correct unit is essential:
interpreting milliseconds as seconds can produce a date far outside the
expected range.
| Unit | Common example | Conversion to milliseconds |
|---|---|---|
| Seconds | 1700000000 | Multiply by 1,000 |
| Milliseconds | 1700000000000 | Use the value as-is |
| Microseconds | 1700000000000000 | Divide by 1,000 |
| Nanoseconds | 1700000000000000000 | Divide by 1,000,000 |
Digit count is a useful clue, not a universal rule. Timestamps from older dates, negative timestamps, or far-future dates may not match the usual digit lengths. If the result looks incorrect, select the unit explicitly and convert again.
UTC, Local Time, and ISO 8601
UTC provides a consistent reference for comparing dates across locations. Local time is displayed according to your device’s configured time zone and daylight-saving rules. The same timestamp can therefore have different local clock readings in different places.
ISO 8601 is a widely used date and time representation. For example,
2023-11-14T22:13:20.000Z identifies a UTC date and time; the
trailing Z indicates UTC.
Example: Convert a Unix Timestamp
Enter 1700000000 with the unit set to Seconds. The corresponding
UTC date and time is 2023-11-14T22:13:20.000Z. The tool also
shows the equivalent timestamp in milliseconds and a local-time rendering
based on your device settings.
Common Timestamp Conversion Problems
- The date is far in the future: Check whether a millisecond timestamp was interpreted as seconds.
- The displayed time differs by several hours: Compare the UTC result with the local time zone setting on your device.
- A very large value loses precision: JavaScript date objects represent time in milliseconds. Microsecond and nanosecond inputs can be converted to a date, but sub-millisecond precision is not preserved in the displayed date.
- The timestamp is rejected: Check that the input contains a valid integer and that its date falls within the range supported by the browser.
Privacy and Compatibility
This converter’s timestamp calculations use built-in browser JavaScript functions and do not require a third-party conversion API. The tool code does not intentionally send the entered timestamp to a conversion server. Other scripts, analytics, or plugins installed on the website may have separate data practices.
Local date and time output depends on your browser and device time-zone settings. Date objects in JavaScript use millisecond precision, so this tool does not preserve the full sub-millisecond precision of nanosecond timestamps.
Frequently Asked Questions
What is a Unix timestamp?
A Unix timestamp is the number of seconds elapsed since January 1, 1970, at 00:00:00 UTC. Some systems use milliseconds, microseconds, or nanoseconds instead.
How do I convert a Unix timestamp to a date?
Enter the timestamp in the Timestamp to Date field, choose the correct unit or use Auto-detect, and select Convert Timestamp. The results include a readable date and time.
What is the difference between Unix seconds and milliseconds?
Seconds count whole seconds since the Unix epoch. Milliseconds count
thousandths of a second. JavaScript’s Date.now() returns
milliseconds, while Unix timestamps are often represented in seconds.
Can I convert a date into a Unix timestamp?
Yes. Choose a date and time in the Date to Timestamp section, select whether it represents local time or UTC, and convert it to Unix seconds or milliseconds.
Why are UTC and local time different?
UTC is a consistent global time reference. Local time applies the time-zone and daylight-saving rules configured for your device. Both can represent the same instant.
Does the converter support milliseconds, microseconds, and nanoseconds?
Yes. You can select seconds, milliseconds, microseconds, or nanoseconds. Automatic detection uses the input’s digit count as a heuristic, so select the unit manually when the timestamp is ambiguous.
Does converting a nanosecond timestamp preserve nanosecond precision?
No. The input can be read as a large integer, but the browser’s standard JavaScript Date object represents time in milliseconds. The displayed date therefore does not preserve sub-millisecond precision.
Is my timestamp uploaded to a server?
The conversion logic in this tool runs in the browser and does not require a conversion API. Other website scripts or plugins may operate separately, so this statement is limited to the tool’s conversion code.