Unix Timestamp Converter

Convert Unix timestamps to human-readable dates and vice versa. Supports seconds and milliseconds. Multi-timezone grid and relative time.

Current Unix timestamp:

Advanced — Auto-detect · Show timezone grid
Enter a timestamp or date, then run conversion.

What is Unix Timestamp Converter?

A Unix timestamp converter transforms epoch time—the number of seconds (or milliseconds) since January 1, 1970 00:00:00 UTC—into human-readable dates and back. Unix timestamps are ubiquitous in APIs, databases, log files, and programming: they're timezone-agnostic, easy to compare, and compact. A 10-digit value like 1739814000 is seconds; a 13-digit value like 1739814000000 is milliseconds (used by JavaScript's Date.now()).

Real-world use cases include debugging API responses that return timestamps, converting log entries to readable dates, translating database epoch values for reports, and scheduling tasks that use Unix time. The tool shows UTC, local time, relative time ("3 days ago", "in 2 hours"), day of week, ISO week number, and a timezone grid (UTC, EST, PST, CET, JST, IST) so you can see the same moment across regions.

How to Use Unix Timestamp Converter

  1. Enter a Unix timestamp in the Timestamp field. Use 10 digits for seconds, 13 for milliseconds.
  2. Check Milliseconds if your value is in ms, or leave it unchecked and enable Auto-detect in Advanced (values >10000000000 are treated as ms).
  3. Click To Date to convert timestamp to human-readable format. The result shows UTC, local time, and relative time.
  4. Click Now to fill the current timestamp and convert it—useful for quick reference.
  5. To convert date to timestamp: select a date and time in the Date & Time picker, then click To Timestamp.
  6. Enable Show timezone grid in Advanced to see the same moment in multiple timezones. Use Copy to copy the result. Press Ctrl+Enter for primary action, Ctrl+Shift+C to copy, Esc to clear.

Tips & Best Practices

JavaScript uses milliseconds; many APIs and databases use seconds. Auto-detect handles both: 10-digit values are treated as seconds, 13-digit as milliseconds. The current timestamp updates every second at the top of the tool. The timezone grid is helpful when coordinating across regions or debugging timezone bugs. Relative time ("in 2 hours") is useful for countdowns or "time ago" displays. Press Esc to clear all fields quickly.

When to Use This Tool

Use the Unix Timestamp Converter when debugging API responses, analyzing logs, converting database timestamps, or building scheduled jobs. It's ideal for developers working with epoch time in any language or platform. For related tasks: use the cron expression generator to build schedules that run at specific times, the JWT decoder to inspect exp and iat claims (Unix seconds), or the UUID generator when v7 UUIDs embed timestamps.

Frequently Asked Questions

What is a Unix timestamp?

A Unix timestamp (epoch time) is seconds since Jan 1, 1970 00:00:00 UTC. 10 digits = seconds, 13 digits = milliseconds. Used in APIs, databases, and logs.

How do I convert timestamp to date?

Enter the timestamp, enable auto-detect or check Milliseconds if it's 13 digits, then click To Date. The result shows UTC, local time, relative time, and a timezone grid. Use Now to fill the current timestamp.

How do I convert date to timestamp?

Select a date and time in the date picker, then click To Timestamp. The result shows the Unix timestamp in seconds or milliseconds depending on the checkbox.

What's the difference between seconds and milliseconds?

Seconds: 10 digits (e.g. 1739814000). Milliseconds: 13 digits (e.g. 1739814000000). JavaScript uses milliseconds; many APIs use seconds. Enable auto-detect to let the tool guess based on value size.

What is the timezone grid?

After converting a timestamp, the timezone grid shows the same moment in UTC, EST, PST, CET, JST, and IST. Enable it in Advanced options.

Where are Unix timestamps used?

APIs, databases, log files, cron jobs. For cron schedule strings, try our cron expression generator. For unique IDs, use the UUID generator.