Unix Timestamp Converter

Convert Unix timestamps to readable dates, or any date to a Unix timestamp.

Unix timestamps are integers that represent the number of seconds elapsed since 1 January 1970 00:00:00 UTC. They are used extensively in programming, databases, log files and APIs. This tool converts between Unix timestamps and human-readable date and time in both directions.
0 chars
Calculators

About this tool

Unix timestamps are integers that represent the number of seconds elapsed since 1 January 1970 00:00:00 UTC. They are used extensively in programming, databases, log files and APIs. This tool converts between Unix timestamps and human-readable date and time in both directions.

How to use

Enter a Unix timestamp (in seconds or milliseconds) or a date string in the input box and click Run. The tool detects which direction to convert and outputs both the readable date and the Unix timestamp.

When to use this tool

Use this when debugging API responses that include timestamp fields, reading log files, working with database records that store dates as integers, or converting a specific date to a timestamp for use in a query or script.

Privacy

All conversion happens locally in your browser. No data is sent to a server.

Frequently asked questions

Seconds or milliseconds?

The tool auto-detects. Unix timestamps in seconds are 10 digits long (e.g. 1704067200). Millisecond timestamps are 13 digits long (e.g. 1704067200000). Both are accepted.

What date formats are accepted as input?

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

Is the output in UTC or local time?

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