---
title: Unix Timestamp Converter — Epoch to Date & Back
url: https://varstatt.com/toolkit/timestamp
description: Convert between Unix timestamps and human-readable dates. Auto-detects seconds vs milliseconds. Timezone support.
section: Developer Toolkit (https://varstatt.com/toolkit)
tags: generators
---
# Unix Timestamp Converter

Convert between Unix timestamps and human-readable dates. Auto-detects seconds vs milliseconds. Timezone support.

## How It Works

1. **Enter a timestamp or pick a date** — Type a Unix timestamp on the left to see the date, or use the date picker on the right to get the timestamp.
2. **Auto-detection** — The tool automatically detects whether your input is in seconds or milliseconds.
3. **Copy results** — Copy the converted value with one click. Use quick buttons for common timestamps.

## FAQ

### What's a Unix timestamp?

The number of seconds (or milliseconds) since January 1, 1970 00:00:00 UTC, also known as the Unix epoch.

### How does auto-detection work?

If the number is greater than 10^12, it's treated as milliseconds. Otherwise, it's seconds.

### Does it handle timezones?

Yes. By default it uses your local timezone. You can switch to UTC for server-side timestamps.

## Usage

This tool runs entirely in the browser — visit the URL above to use it.

Prefill inputs via URL parameters:

- `https://varstatt.com/toolkit/timestamp?value=...`
