A Unix timestamp converter translates machine-friendly epoch values into readable dates and converts calendar dates back into timestamps. Developers, analysts, support teams, database administrators, and API users encounter these values in logs, webhooks, tokens, spreadsheets, analytics exports, and operating systems.
Use TechCord’s free epoch converter to convert a timestamp to a date or a date to a timestamp directly in the browser. The tool accepts timestamp zero, shows UTC and local time, and helps distinguish values stored in seconds from those stored in milliseconds.
What is a Unix timestamp?
A Unix timestamp counts elapsed time from the Unix epoch: January 1, 1970 at 00:00:00 UTC. A value of 0 represents the epoch itself. Positive values represent later instants; negative values represent supported dates before the epoch.
The timestamp identifies an instant, not a human timezone. A single instant can be displayed as different local clock times depending on the viewer’s timezone, but the underlying moment remains the same.
Seconds versus milliseconds
| Format | Typical length | Common environments |
|---|---|---|
| Unix seconds | 10 digits for modern dates | PHP, Python, Linux, many APIs |
| Unix milliseconds | 13 digits for modern dates | JavaScript, browser events, some databases |
| Microseconds | 16 digits | High-resolution logs and databases |
| Nanoseconds | 19 digits | Telemetry and performance systems |
Confusing seconds and milliseconds creates dates thousands of years away or close to January 1970. To convert seconds to milliseconds, multiply by 1,000. To convert milliseconds to seconds, divide by 1,000 and decide how to handle the fractional remainder.
How to convert a timestamp to a date
- Copy the epoch value from the source.
- Check whether it is measured in seconds or milliseconds.
- Paste it into the timestamp converter.
- Review both the UTC result and your local time.
- Copy the format required by your application or report.
If the input is 0, the UTC result should be Thursday, January 1, 1970 at midnight. Zero is a valid value and should not be treated as an empty field.
How to convert a date to a Unix timestamp
Select a calendar date and time, decide which timezone the input represents, and convert it. The timezone decision is essential. “June 15 at noon” is incomplete unless it is associated with UTC or a local timezone.
For a user’s local date-and-time input, parse it as local time. Adding a trailing Z tells many programming environments to interpret the value as UTC and may introduce an offset error.
UTC time versus local time
UTC is the stable reference used for timestamps. Local time is a display of that instant using a regional offset and daylight-saving rules. Store or transmit the instant in UTC, then format it for the user at the interface boundary.
For cross-region planning, pair the converter with TechCord’s World Clock and Timezone Converter. For arithmetic such as adding hours or days, use the Date and Time Calculator.
Common timestamp use cases
- API requests: expiration times, created-at fields, pagination cursors, and webhook events.
- Server logs: ordering events consistently across machines.
- Databases: storing an instant independently of display format.
- Authentication: token issue and expiry times.
- Analytics: converting exported event times into local reporting dates.
- Spreadsheets: transforming raw epoch columns into readable date-time values.
Unix timestamp examples
| Value | Interpretation |
|---|---|
0 | Unix epoch: 1970-01-01 00:00:00 UTC |
86400 | Exactly one day after the epoch in seconds |
1718452800 | A 10-digit timestamp measured in seconds |
1718452800000 | The same scale represented in milliseconds |
Do not identify the unit from length alone when historical or far-future dates are possible. Confirm the field documentation and use plausibility checks.
Troubleshooting incorrect dates
- If the date is near 1970, a millisecond value may have been divided twice or a seconds value treated as milliseconds.
- If the result is far in the future, seconds may have been interpreted as milliseconds incorrectly in the other direction.
- If the result is off by several hours, check UTC versus local parsing.
- If it is off by exactly one hour, investigate daylight saving time.
- If the result never updates for zero, replace a falsy check with an explicit empty-value check.
- If duplicate local-time lines appear, check for repeated DOM nodes or render calls.
Frequently asked questions
What is the current Unix timestamp?
It is the number of seconds elapsed since the Unix epoch at the current instant. It changes every second.
Is a Unix timestamp always UTC?
It represents an instant relative to UTC. The same value can be formatted in any local timezone.
Why does JavaScript use 13-digit timestamps?
JavaScript dates commonly use milliseconds since the epoch, while many server environments use seconds.
Can Unix timestamps represent dates before 1970?
Many systems support negative timestamps, although the supported range varies by language, database, and platform.
Convert epoch time instantly
Paste seconds or milliseconds, compare UTC with local time, or generate a timestamp from a calendar date.
