# JavaScript / TypeScript
Math.floor(Date.now() / 1000) // seconds
Date.now() // milliseconds
new Date(ts * 1000).toISOString() // seconds ts -> ISO 8601
# Python
import time; int(time.time()) # seconds
from datetime import datetime, timezone
int(datetime.now(timezone.utc).timestamp())
# PHP
time() // seconds
# Go
import "time"
time.Now().Unix() // seconds
time.Now().UnixMilli() // milliseconds
# Ruby
Time.now.to_i # seconds
# Java
System.currentTimeMillis() / 1000L // seconds
# Rust
use std::time::{SystemTime, UNIX_EPOCH};
SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs()
# SQL (PostgreSQL)
EXTRACT(EPOCH FROM NOW())::BIGINT -- seconds
-- MySQL
UNIX_TIMESTAMP() -- secondsFree Unix timestamp converter -- convert epoch time to human-readable dates, ISO 8601, RFC 2822, and 20 timezones online
This free Unix timestamp converter accepts any timestamp or date string input and instantly converts it to six output formats simultaneously: Unix seconds, Unix milliseconds, ISO 8601, RFC 2822, human-readable localised time in your selected timezone, and a relative time description such as "3 days ago" or "2 hours from now". The input parser automatically handles the full range of timestamp formats -- pure integer Unix seconds (10 digits, e.g. 1710000000), JavaScript milliseconds (13 digits, e.g. 1710000000000, auto-detected by the value exceeding one trillion), ISO 8601 datetime strings, RFC 2822 strings, and natural date strings parseable by the JavaScript Date constructor. All processing runs entirely client-side in your browser -- no data is ever transmitted to any server, making it safe to use with sensitive log data, internal API responses, and database records.
The tool includes several features beyond basic conversion. The live clock at the top of the tool card updates every second using a setInterval React hook that calls Math.floor(Date.now() / 1000), displaying the current Unix epoch seconds and ISO 8601 string with a one-click copy button for immediate use in API calls, database queries, and development tasks. The timezone selector allows you to choose from 20 globally distributed IANA timezone identifiers -- from UTC and the US regions through Europe, the Middle East, South and Southeast Asia, East Asia, and Oceania -- and the human-readable output row shows your timestamp converted to that zone using the browser's Intl.DateTimeFormat API. The timezone grid at the bottom of the tool card shows the same moment (either your entered timestamp or the current time if no input is provided) displayed across all 20 timezones simultaneously, making cross-timezone scheduling and debugging straightforward without needing to calculate offsets manually.
Unix timestamps are foundational to computing and appear at every layer of the technology stack. In databases, created_at and updated_at columns are frequently stored as integer Unix timestamps for efficient indexing and arithmetic -- comparing timestamps is a simple integer subtraction. In authentication systems, JWT tokens use iat (issued at) and exp (expiry) claims as Unix timestamps to encode when a token was created and when it should be rejected. In distributed systems, timestamps are used for event ordering and conflict resolution. In web APIs, REST and GraphQL responses include timestamps as integers or ISO 8601 strings for date fields. In observability and monitoring, log aggregation systems like Elasticsearch and Splunk index events by Unix timestamps for efficient range queries. In email infrastructure, SMTP message dates use RFC 2822 format. This converter handles all of these contexts, making it useful for backend developers debugging API responses, frontend engineers parsing event data, DevOps engineers reading log timestamps, and database administrators working with time-series data.
Unix timestamp conversion examples -- seconds, milliseconds, ISO 8601 input, timezone output, and future scheduling
Frequently asked questions about Unix timestamps, epoch conversion, ISO 8601, timezones, and the Year 2038 problem
Need a disposable email address?Stop giving your real email to sites you don't trust -- get a free instant throwaway with no signup and no trace.
Get Free Temp Mail ->