# Convert Unix time to a date, and back

> Paste an epoch value and read the date in UTC, your time and any zone. The unit is detected for you.

Turn epoch seconds, milliseconds, microseconds or nanoseconds into UTC, local and any time-zone date. ISO, RFC 2822, relative time and a date picker. Free.

- Tool: [Unix timestamp converter](https://fixmint.cc/unix-timestamp-converter)
- Category: [Time & dates](https://fixmint.cc/time)
- Fixes: Epoch number to a real date
- Runs in the browser: files and text stay on the device, no sign-up, free.

## How to convert a Unix timestamp

1. Paste the epoch value; seconds, milliseconds, microseconds and nanoseconds are all recognised.
2. Pick a time zone for a third reading, beside UTC and your own time.
3. Use the picker for a date back to epoch, or paste a list for a table.

## Questions

### How does it know whether a value is seconds or milliseconds?

By size. Values below 10^11 are read as seconds, then milliseconds up to 10^14, microseconds up to 10^17, and nanoseconds above that. A value that large in seconds would be far beyond the year 5138, so the reading is safe in practice.

### What is the 2038 problem?

A signed 32-bit count of seconds since 1970 overflows on 19 January 2038 at 03:14:07 UTC. Programs that still store time that way cannot represent later dates, even though this page and modern 64-bit systems can. The date is flagged when it crosses that line.

### Which time zones can I choose?

Every zone the browser knows. The list comes from the browser’s own time-zone database, so it updates when the browser does and daylight-saving changes are applied for the chosen instant.

### What is Unix time?

The number of seconds since 00:00:00 UTC on 1 January 1970, not counting leap seconds. JavaScript and many APIs use milliseconds instead, which is why this page reads both.

## Related tools

- [Time zone converter](https://fixmint.cc/time-zone-converter): What time is it there?
- [Date calculator](https://fixmint.cc/date-calculator): How many days until…?
- [Hours calculator](https://fixmint.cc/hours-calculator): How many hours did I work?
- [Cron explainer](https://fixmint.cc/cron-expression-explainer): Cron runs at the wrong time
