UFOZoo

Timestamp Converter — Unix Epoch to Date & Time Online

Convert Unix timestamps to dates in ISO 8601, RFC 2822, and UTC. Supports seconds, milliseconds, microseconds, nanoseconds. Duration and code snippets.

Features

  • Convert Unix timestamps (seconds, milliseconds, microseconds, nanoseconds) to human-readable dates
  • Convert dates back to Unix timestamps with any precision
  • Auto-detect whether input is seconds, milliseconds, microseconds, or nanoseconds
  • Display results in ISO 8601, UTC, local time, and RFC 2822 formats
  • Show relative time (e.g., '2 hours ago', 'in 3 days')
  • Show duration breakdown (e.g., '1y 205d 3h 33m 20s')
  • Code examples in 8 programming languages (JS, Python, Go, Java, Rust, PHP, Ruby, Shell)
  • Copy any result with a single click
  • Support for current timestamp generation
  • Real-time conversion as you type
  • All processing runs locally in your browser — no data sent to servers

How to Use

  1. 1Enter a Unix timestamp (e.g., 1700000000) in the Timestamp to Date tab.
  2. 2The tool auto-detects precision: seconds (10 digits), milliseconds (13), microseconds (16), nanoseconds (19).
  3. 3View the converted date in ISO 8601, UTC, RFC 2822, and your local timezone.
  4. 4Check the duration field to see the timestamp expressed as years, days, hours, minutes, and seconds.
  5. 5Click 'Code Examples' to see how to convert this timestamp in your preferred language.
  6. 6Click any result to copy it to your clipboard.
  7. 7Switch to the Date to Timestamp tab to convert a date to Unix time.
  8. 8Select your desired precision: seconds, milliseconds, microseconds, or nanoseconds.
  9. 9Use the 'Now' button to get the current timestamp instantly.
  10. 10Paste a timestamp from Kafka, Protobuf, or Go/Rust logs (microseconds) to decode it.

Frequently Asked Questions

What is a Unix timestamp?

A Unix timestamp (also called epoch time) is the number of seconds (or milliseconds) that have elapsed since January 1, 1970, 00:00:00 UTC. It's a universal way to represent points in time, widely used in programming, databases, and APIs.

How do I know if a timestamp is in seconds, milliseconds, microseconds, or nanoseconds?

The tool auto-detects precision: up to 10 digits = seconds, 13 digits = milliseconds, 16 digits = microseconds, 19 digits = nanoseconds. For reference, 1700000000 is seconds, 1700000000000 is milliseconds, 1700000000000000 is microseconds.

When should I use microseconds or nanoseconds?

Microseconds (μs) are common in Go, Rust, Kafka, Protobuf, and high-performance logging. Nanoseconds (ns) are used in Go's time package and some database systems like CockroachDB. Seconds are standard in Unix/Linux, MySQL, and Redis.

What is RFC 2822 format?

RFC 2822 is the standard format for email and HTTP Date headers: 'Mon, 14 Nov 2023 22:13:20 +0000'. It's used in HTTP Cache-Control, If-Modified-Since, and email Date headers.

What does 'duration' mean in the results?

Duration shows the timestamp value expressed as a human-readable time span: years, days, hours, minutes, and seconds. For example, a timestamp of 31557600 seconds shows as '1y 0d 0h 0m 0s' (approximately 1 year).

Can I convert dates before 1970?

Technically yes — Unix timestamps can be negative to represent dates before the epoch (January 1, 1970). However, this tool currently only supports positive timestamps.

What is the Year 2038 problem?

The Year 2038 problem affects systems that store Unix timestamps as 32-bit signed integers. The maximum value (2,147,483,647 seconds) corresponds to January 19, 2038. Modern systems use 64-bit integers, which won't overflow for billions of years.

How do I get the current Unix timestamp?

Click the 'Now' button to fill in the current timestamp. In JavaScript: Date.now() (ms) or Math.floor(Date.now() / 1000) (s). In terminal: 'date +%s' (seconds) or 'date +%s%N | cut -b1-13' (milliseconds).

Can I use this tool to convert timestamps from databases?

Yes. MySQL UNIX_TIMESTAMP() returns seconds, PostgreSQL EXTRACT(EPOCH FROM) returns seconds, MongoDB stores milliseconds, Go time.Now().UnixMicro() returns microseconds. Enter the value and the tool auto-detects the precision.

Is my data private when using this tool?

Yes, completely. All conversions happen locally in your browser using JavaScript. No timestamp data is ever sent to any server. Your inputs never leave your device.

Related Tools