Unix Timestamp Converter

Convert between Unix timestamp and datetime. For API, logs, DB.

About this tool

This tool converts Unix timestamp and datetime in one click. Three features: 1) Enter timestamp for datetime, pick datetime for timestamp, 2) Millisecond support, 3) Get current timestamp. Ideal for API, logs, and DB datetime handling.

Tool interface

Current timestamp:

Usage

  1. Enter Unix timestamp (seconds) to convert to datetime
  2. Pick datetime to convert to timestamp
  3. Millisecond (13 digits) supported. Get current time available

When to use

Checking API datetime params, converting log timestamps, verifying DB datetime columns.

Examples

1700000000 → 2023/11/15 12:13:20 (JST), get current timestamp.

FAQ

What is Unix timestamp?

Seconds (or ms) since Jan 1, 1970 00:00:00 UTC. Standard for dates in APIs and databases.

What is Jan 1, 1970 UTC?

Unix epoch—the reference date for timestamps. Used as origin in many programming languages.

Milliseconds vs seconds?

1 second = 1000 ms. Date.now() returns ms; many APIs use seconds. 10 digits = seconds, 13 digits = ms.

How to convert timestamp to datetime?

In code: new Date(timestamp*1000) for seconds, new Date(timestamp) for ms. This tool does it instantly.

Related tools