Skip to content
WEB DEVELOPMENT TOOLS

Unix Timestamp Converter – Epoch to Date

Convert Unix timestamps and human-readable dates.

  • Free
  • No signup
  • Runs in your browser

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

Timestamp Converter

About Timestamp Converter

A Unix timestamp counts the seconds since 1 January 1970 at 00:00 UTC. Databases, APIs, log files and JSON Web Tokens use it because a single number is easy to store, sort and compare across time zones.

Choose a direction. Unix timestamp to date accepts values in seconds or milliseconds and shows the date in your local time zone and in UTC (ISO 8601). Date to Unix timestamp accepts a date such as 2026-01-01T00:00:00Z and returns the value in both seconds and milliseconds.

How to use Timestamp Converter

  1. Pick the direction: Unix timestamp to date, or Date to Unix timestamp.
  2. Enter the timestamp or the date and click Run Tool.
  3. Copy the result. The first line shows your local time and the second shows UTC.

Example

Input

1767225600

Output

2026-01-01T00:00:00.000Z

The tool prints two lines: the date in your own time zone and the UTC value. Only the UTC line is shown here because the first changes with your location.

Common uses

  • Reading the exp or iat value of a JWT or an API response.
  • Converting a date from a log file or database column.
  • Creating a timestamp for a scheduled job or a test fixture.

Privacy and safety

This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.

Frequently asked questions

Seconds or milliseconds?

PHP time() and most APIs use seconds, while JavaScript Date.now() uses milliseconds. This tool treats values below 1,000,000,000,000 as seconds and larger values as milliseconds.

Why does the local time differ from UTC?

Unix time is always UTC. Local time adds your time zone offset, for example +05:30 for India.

What date formats can I enter?

Use ISO 8601 such as 2026-01-01T00:00:00Z, which is unambiguous. A date without a time zone is read in your local time.

Learn to build this yourself

Free tutorials and courses on NHP Learning cover PHP, JavaScript, SQL and WordPress, from the basics to real projects.