# Unix Timestamp Converter

> Convert between Unix epoch timestamps and human-readable dates instantly. Supports seconds and milliseconds with timezone awareness.

- Open the tool: https://overtooled.com/unix-timestamp
- Category: Time & Date
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: epoch, unix, timestamp, convert, date

## In short

Convert Unix epoch timestamps to readable dates and back.

## Overview

Converts between Unix epoch timestamps and human-readable dates. It shows the live current timestamp, converts a timestamp to UTC/local/ISO 8601, turns a date and time into seconds and milliseconds, and parses free-form date strings. Aimed at developers working with logs, APIs and databases.

## Features

- Live current Unix timestamp in seconds (updated every second) with its ISO 8601 time, a copy button and a Pipeline button to send it to other tools
- Timestamp to date: shows UTC (toUTCString), local (toLocaleString with the time zone abbreviation) and ISO 8601; values whose size is above 1e12 (positive or negative) are treated as milliseconds, smaller ones as seconds
- Date to timestamp: pick a date and optional time (local time, default 00:00) to get seconds and milliseconds
- Parse date string: accepts anything the browser's Date parser understands (e.g. 2024-01-15T10:30:00Z, Jan 15 2024, 01/15/2024) and returns seconds, milliseconds, UTC and ISO 8601
- Copy button on every result row
- Inline "Invalid timestamp" / "Could not parse date string" errors

## How to use it

1. Copy the current timestamp from the top panel, or
2. Paste a timestamp into "Timestamp to Date" to read it as a date, or
3. Pick a date/time in "Date to Timestamp" to get epoch seconds and milliseconds, or
4. Type any date text into "Parse Date String".

## Inputs

- Integer Unix timestamp in seconds or milliseconds (negative values for pre-1970 dates work); anything other than a whole number, such as decimals or trailing letters, shows "Invalid timestamp"
- Date and time from browser pickers (interpreted in local time)
- Free-form date string

## Outputs

- UTC string, local date-time string, ISO 8601 string
- Epoch seconds and milliseconds

## Limits and notes

- Seconds vs milliseconds is detected only by the 1e12 threshold, so a millisecond timestamp before about September 2001 is read as seconds
- Date-string parsing depends on the browser's Date implementation; strings without a zone are usually read as local time (date-only ISO strings like 2024-01-15 as UTC)
- Inputs are not saved; nothing is uploaded

## Questions and answers

### How does the Unix Timestamp Converter work?

The live clock divides Date.now() by 1,000 and floors it every second. For timestamp-to-date conversion, the tool auto-detects seconds vs. milliseconds by checking if the input exceeds 1e12, then passes the value to the Date constructor. For date-to-timestamp, it constructs a Date from the input and divides getTime() by 1,000. All formats (UTC, local, ISO 8601) use the Date object's built-in formatting methods.

### What is a Unix timestamp?

A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC. It is a standard way to represent time in programming and databases.

### How do I know if my timestamp is in seconds or milliseconds?

Timestamps in seconds are typically 10 digits (e.g., 1700000000). Timestamps in milliseconds are 13 digits (e.g., 1700000000000). The tool detects and handles both formats automatically.

### Does the converter account for my local timezone?

Yes. The human-readable date is displayed in your local timezone. The underlying Unix timestamp is always UTC, but the output adjusts to show what that moment looks like in your timezone.

## Related tools

- [Age Calculator](https://overtooled.com/age-calculator.md): Calculate exact age in years, months, and days from birthdate
- [Countdown to Date](https://overtooled.com/countdown-to-date.md): See days, hours, and minutes until any date or event
- [Date +/- Calculator](https://overtooled.com/date-calculator.md): Add or subtract days, weeks, or months from any date
- [Days Between Dates](https://overtooled.com/days-between-dates.md): Find the exact days, weeks, and months between two dates

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
