Unix Timestamp Converter

Convert Unix timestamps to readable dates and times, or convert any date to a Unix timestamp — auto-detects seconds or milliseconds.

Unix timestamps — integers representing seconds (or milliseconds) elapsed since 1 January 1970 00:00:00 UTC — are used extensively in programming, databases, log files, APIs and analytics. Reading them by eye or converting them to a specific date requires calculation or a lookup. This tool converts Unix timestamps to human-readable dates and times, or converts any date string to a Unix timestamp, in both directions.
0 chars
Calculators

Runs locally  ·  No data sent to server  ·  Free, no signup

About Unix Timestamp Converter

Unix timestamps — integers representing seconds (or milliseconds) elapsed since 1 January 1970 00:00:00 UTC — are used extensively in programming, databases, log files, APIs and analytics. Reading them by eye or converting them to a specific date requires calculation or a lookup. This tool converts Unix timestamps to human-readable dates and times, or converts any date string to a Unix timestamp, in both directions.

How to use Unix Timestamp Converter

Enter a Unix timestamp (in seconds or milliseconds) or a date string in the input box and click Run. The tool auto-detects the direction of conversion. For a timestamp input, it outputs the readable date in both UTC and your local timezone. For a date string input, it outputs the corresponding Unix timestamp in seconds and milliseconds.

When to use this tool

Use this when debugging API responses that include timestamp fields, when reading timestamps in log files or database records, when working with analytics platforms that report dates as epoch values, when writing database queries that filter by timestamp, or when converting a specific date to a timestamp for use in a script or API call.

Privacy

All conversion happens locally in your browser. No data is sent to a server. You can safely convert timestamps from internal logs, proprietary systems and sensitive data sources.

Frequently asked questions

Does it handle seconds and milliseconds automatically?

Yes. Unix timestamps in seconds are 10 digits long (e.g. 1704067200). Millisecond timestamps are 13 digits long (e.g. 1704067200000). The tool auto-detects which format you have entered and converts accordingly.

What date formats are accepted as input?

The tool accepts ISO 8601 date strings (e.g. 2024-01-01 or 2024-01-01T12:00:00Z), common formats like 01/01/2024 and plain Unix timestamp integers.

Is the output in UTC or local time?

Both. The output shows the UTC date and time and the local date and time based on your browser timezone, so there is no ambiguity when working across time zones.

What is epoch time?

Epoch time, also called Unix time or POSIX time, is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970 — the Unix epoch. It is a timezone-independent way to represent a precise moment in time.