Skip to main content

Unix Timestamp Converter

Convert a Unix timestamp (seconds or milliseconds) to a readable date, or convert a date to a timestamp. Auto-detects seconds vs milliseconds.

Reviewed for accuracy by the Math Ora X team Last updated

About this tool

Convert a Unix timestamp (seconds or milliseconds) to a readable date, or convert a date to a timestamp. Auto-detects seconds vs milliseconds.

Example

Input: 1718020800

Output: 2024-06-10T12:00:00Z

Privacy

This tool runs entirely in your browser. Your data is processed locally and never uploaded to a server.

How to use this tool

  1. Paste a Unix timestamp or a date into the input box.
  2. Choose whether you want to convert to a readable date or to a Unix timestamp.
  3. If you enter a timestamp, let the tool auto-detect whether it is in seconds or milliseconds.
  4. Review the converted result and use it in your code, logs, or tests.

Step by step, what happens

  1. The tool first inspects your input to see whether it looks like a Unix timestamp or a date string.
  2. If the value is a timestamp, it checks the length and format to decide whether it is seconds or milliseconds.
  3. It then converts the value into a standard readable date or into a Unix timestamp, depending on the direction you chose.
  4. Finally, it shows the result clearly so you can copy it and verify the time is what you expected.

Worked example

A common case is checking a log timestamp like 1700000000 and turning it into a readable date.

Input: 1700000000

  1. Paste 1700000000 into the converter.
  2. The tool recognizes it as a Unix timestamp in seconds, not milliseconds.
  3. It converts the value into a readable date in UTC.

Output: 2023-11-14 22:13:20 UTC

Tips and common mistakes

  • If a timestamp looks far in the future or past, it may be in milliseconds when you expected seconds.
  • Use UTC when comparing results from logs, APIs, or backend systems, since local time can make dates look different.
  • If you paste a date, include the full time and timezone when possible to avoid ambiguous results.
  • A 10-digit Unix value is usually seconds, while a 13-digit value is usually milliseconds.

Frequently asked questions

Seconds or milliseconds?

It auto-detects: more than 10 digits is treated as milliseconds, otherwise seconds.

What is the Unix epoch?

Midnight UTC on January 1, 1970. Timestamps count the time elapsed since then.

Can I convert a date to a timestamp?

Yes, paste a date string and it returns the timestamp.

More Developer Tools Tools

Explore related calculators in this category

You Might Also Like

Popular tools from other categories

Can't Find the Right Calculator?

Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.

Try AI Solver

Browse All Categories

Home Developer Tools Current Tool
Facebook Twitter WhatsApp