Unix Epoch Converter
Convert Unix timestamps to human-readable dates and back. Supports seconds and milliseconds, multiple timezones, relative time display, and ISO 8601 / RFC 2822 formats. Includes a live epoch clock.
Real-World Use Cases
1. Debugging API Token Expiry Times
Your JWT token has "exp": 1712300000 in the payload. Paste the epoch value here to see exactly when the token expires in your local timezone — no mental math needed.
Input (seconds)
1712300000
Converted Output
Fri Apr 05 2024 14:13:20 UTC ISO: 2024-04-05T14:13:20.000Z Relative: about 2 years ago → Token is long expired!
2. Converting JavaScript Date.now() Milliseconds
You see 1712345678901 in a console log from Date.now(). The tool auto-detects it's milliseconds (13 digits) and converts it correctly without you needing to divide by 1000.
Input (milliseconds)
1712345678901
Auto-Detected & Converted
Format: milliseconds (auto) Fri Apr 05 2024 14:54:38 UTC RFC 2822: Fri, 05 Apr 2024 14:54:38 +0000
3. Creating Epoch Timestamps for Database Queries
You need to filter records created after a specific date. Switch to "Date → Epoch" mode, enter the date, and get the epoch value for your SQL WHERE created_at > clause.
Input Date
2026-01-01 00:00:00 Timezone: Asia/Taipei (UTC+8)
Epoch Output
Seconds: 1767196800 Milliseconds: 1767196800000 SQL: WHERE created_at > 1767196800
How to Use — Step by Step
- Choose direction — Select "Epoch → Date" to decode a timestamp, or "Date → Epoch" to generate one.
- Enter your value — Paste a Unix timestamp (10 or 13 digits) or type a date in
YYYY-MM-DD HH:MM:SSformat. - Select timezone — Choose from 19 common timezones. The conversion adjusts automatically for UTC offset.
- Read the output — See the result in multiple formats: human-readable, ISO 8601, RFC 2822, and relative time (e.g. "3 days ago").
- Copy — Click copy to grab the value you need for your code, database query, or API request.
Frequently Asked Questions
What is a Unix epoch timestamp?▼
Unix epoch (or Unix time) is the number of seconds elapsed since January 1, 1970, 00:00:00 UTC. It is a standard way to represent timestamps in programming because it is timezone-independent, compact, and easy to compare and calculate with.
How do I convert epoch to a human-readable date?▼
Paste your Unix timestamp into the 'Epoch → Date' field. The tool converts it instantly to multiple formats: human-readable, ISO 8601, RFC 2822, and relative time (e.g. '3 days ago'). Select any timezone to see the local time.
How do I convert a date to epoch?▼
Switch to 'Date → Epoch' mode. Enter your date in YYYY-MM-DD or YYYY-MM-DD HH:MM:SS format, select the timezone the date is in, and the tool outputs the Unix epoch in both seconds and milliseconds.
What is the difference between seconds and milliseconds epoch?▼
Most Unix systems use seconds (10-digit numbers like 1700000000). JavaScript's Date.now() and many APIs use milliseconds (13-digit numbers). The tool auto-detects which one you entered and you can switch with the dropdown.
Why do some APIs use milliseconds instead of seconds?▼
JavaScript's Date object works in milliseconds, so many web APIs (Redis, Kafka, browser localStorage) follow suit. Database systems like PostgreSQL typically use seconds. Always check the API documentation to avoid off-by-1000x bugs.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
Unix Timestamp Converter
Free Unix timestamp converter. Convert epoch time to human-readable dates (UTC, local time, ISO 8601) and back. See the live current timestamp. Auto-detects seconds vs milliseconds. Runs entirely in y
Open free tool →
Timestamp Converter
Free timestamp converter. Convert between Unix timestamps (seconds & milliseconds), ISO 8601, UTC string, RFC 2822, and local datetime. Live current timestamp. Runs in your browser.
Open free tool →
Pomodoro Timer
Free Pomodoro timer for developers. 25/5/15-minute intervals, sound notifications via Web Audio API, offline-ready. No signup needed.
Open free tool →
More Free Tools
Related Articles
Timestamp Converter Online: Convert Unix Timestamps to Human-Readable Dates
Convert Unix timestamps to readable dates and back online for free. Learn what Unix timestamps are, how to convert them in JavaScript, Python, and SQL, and avoid timezone traps.
Converting Timestamps to Dates: A Developer Cheatsheet
Master Unix timestamp conversion. Learn how to convert timestamps to human-readable dates in JavaScript, Python, Go, and more — with a practical developer cheatsheet.
CSV to JSON Online: Convert Spreadsheet Data in One Click
Convert CSV to JSON online free — paste spreadsheet data and get valid JSON instantly. Handles headers, quoted commas, custom delimiters, and type coercion.
HTML to Markdown Converter Online: Clean Up Any HTML in Seconds
Convert HTML to Markdown free online — paste any webpage, CMS export, or email HTML and get clean Markdown output ready for GitHub, docs, or static sites.
Markdown to HTML Converter: Best Free Tools in 2026 Compared
Compare the best free Markdown to HTML converter tools in 2026. We tested DevPlaybook, Dillinger, StackEdit, and others on conversion accuracy, live preview, and export quality.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →