Convert Unix timestamps to readable time

How Unix timestamp conversion works, what it changes, and when a readable date stays accurate and usable after copying, sharing or localizing.

A Unix timestamp is compact and unambiguous for software, but hard for people to read. Converting it to a calendar date and clock time makes it readable, but it can also introduce ambiguity, depending on the output format. This review explains what conversion changes, when the readable version is the right choice, and when the raw number should stay in place.

Is converting a Unix timestamp suitable for your use?

Converting is a good choice when people need to read the time, for example in reports, support messages, log reviews, or anything shared with non-technical readers. You don't have to count seconds from a reference point to know when something happened.

The main tradeoff is that a readable date depends on choices the raw number avoids: time zone, date order, 12- or 24-hour clock, and precision. If any of these are left out or misread, the readable version can point to the wrong moment, even though it looks clear.

Keep the original timestamp, or store it alongside the readable version, in these cases:

  • The value will be read by software, imported into a database, or compared and sorted by a program.
  • You need exact precision, such as milliseconds, and the readable format would round or drop it.
  • Readers are in different time zones and no shared reference, such as UTC, has been agreed.
  • The record is for audits or evidence, where the original value must be preserved exactly.

In short: convert for people, keep the number for machines. When both groups will use the data, include both.

What the conversion actually changes

Unix time counts the seconds since 00:00:00 UTC on 1 January 1970, a starting point called the Unix epoch. Leap seconds are not counted. Converting it to readable time does not change the moment it represents. It changes how that moment is written.

There are two different kinds of change, and they are easy to confuse:

  • Stored change: the conversion creates a new text string, such as 2001-09-09T01:46:40Z, and that string replaces or sits beside the number. Whatever you copy or save is the new text.
  • Presentation only: a spreadsheet cell format, a database client, or a web page may show a formatted date while the underlying value is still the number. Copying the cell or exporting the data may give you the number, the formatted text, or a local-time rendering, depending on the application.

"Unix time format" can mean different things. Usually it means the timestamp itself, the plain integer. In some contexts it means the output of the Unix date command, which has its own default layout. When someone asks for a time "in Unix format," check which one they mean.

Reference conversions

The values below follow directly from the definition of Unix time and are shown in UTC, using ISO 8601 notation. The trailing Z means UTC.

Input | Unit | Readable UTC time | Note
0 | seconds | 1970-01-01T00:00:00Z | The epoch itself
-86400 | seconds | 1969-12-31T00:00:00Z | Negative values are dates before 1970
1000000000 | seconds | 2001-09-09T01:46:40Z | A common test value
1000000000000 | milliseconds | 2001-09-09T01:46:40Z | Same instant, written in milliseconds
2147483647 | seconds | 2038-01-19T03:14:07Z | Largest value a signed 32-bit integer can hold

The last two rows show two common sources of error. First, some systems, including JavaScript's Date object, use milliseconds rather than seconds. If a millisecond value is read as seconds, the result is a date tens of thousands of years in the future. If a seconds value is read as milliseconds, the result is a date in January 1970. For present-day dates, a 10-digit value is usually seconds and a 13-digit value is usually milliseconds, but check the source's documentation instead of relying on digit count alone. Second, software that stores Unix time in a signed 32-bit integer cannot represent moments after the 2038 limit.

Converting with common tools

The commands below use documented standard features and request UTC output in ISO 8601 form. Option names differ between platforms. GNU date, found on most Linux systems, uses -d with an @ prefix. BSD and macOS date use -r.

# GNU date (Linux)
date -u -d @1000000000 +%Y-%m-%dT%H:%M:%SZ

# BSD / macOS date
date -u -r 1000000000 +%Y-%m-%dT%H:%M:%SZ

# Python
from datetime import datetime, timezone
datetime.fromtimestamp(1000000000, tz=timezone.utc).isoformat()

# JavaScript (expects milliseconds)
new Date(1000000000 * 1000).toISOString()

In Python, leaving out the tz argument returns the machine's local time without a zone label. That silent dependency on local time is a common cause of conversions that look correct but are off by several hours.

Will the result stay readable and usable after copying or sharing?

A converted time is ordinary text, so it copies and pastes reliably. The risk is not that the characters get garbled. The risk is that the reader interprets them differently from the writer. Two problems cause most of the trouble.

Time zones and daylight saving time

The same timestamp is a different clock time in each zone. For example, 2001-09-09T01:46:40Z was 21:46:40 on 8 September in US Eastern Daylight Time (UTC−4). In this case, even the calendar date changes. A readable time with no zone or offset can't be checked by the recipient. In the US, daylight saving time adds another complication: the offset for a given zone changes during the year, so "Eastern time" alone does not tell you the offset. Including an explicit offset, or writing in UTC, solves both problems.

Date order and localized formats

US readers usually read 03/04/2026 as March 4, but many other regions read it as 3 April. Spelling out the month, as in "March 4, 2026," or using ISO 8601 order (2026-03-04) avoids this. ISO 8601 has another practical advantage: when every value uses the same layout and the same UTC reference, sorting the strings alphabetically puts them in time order, which helps with file names and plain-text logs.

Accessibility, search and editing

  • Assistive technology: a raw 10-digit timestamp is meaningless when read aloud, so conversion helps people using screen readers. How a given screen reader speaks numeric dates such as 2026-03-04 depends on the product, its settings and the language, and no test evidence was available for this review. If accessibility matters for your audience, test the format with the screen readers they use, or use a spelled-out month.
  • Web pages: the HTML time element lets a page show friendly text while keeping a machine-readable value in its datetime attribute. This serves both human readers and software from the same markup.
  • Search: people search for dates the way they write them, not as timestamps, so readable dates are easier to find in documents. A mix of formats in one document makes searching harder, so choose one format and use it throughout.
  • Editing: changing a readable date by hand is easy, but it is also easy to update the date and forget the time zone or offset. If the value will later be converted back to Unix time, keep it in a strict, parseable format such as ISO 8601.

When to include a plain timestamp as well

Include the raw Unix value next to the readable time when the recipient may need to pass it to another system, when precision beyond seconds matters, or when the exact original value must be preserved. The readable form is for understanding, and the number is for exact reproduction.

Gaps in this review

No evidence was supplied about any particular online converter, so this review does not rate specific tools, their accuracy, or their privacy and data-retention practices. Do not judge those from a tool's appearance or marketing. If the timestamps you are converting are sensitive, the commands shown above run on your own machine. Screen reader behavior and the handling of formatted dates by particular spreadsheets or chat apps were not tested here. Check those in the specific environment you plan to use.