convert Unix timestampsDeveloper Tools
Converts between Unix epoch time and readable dates, in both directions.
Paste a date in almost any form and this date format converter rewrites it in every common format: ISO 8601, RFC 2822, SQL, Unix timestamps, and more. You can also build your own format with PHP date(), strftime, or Day.js tokens.
| Token | Example |
|---|
2025-03-04 14:30 or 1741098600.The input is read into one exact instant. Dates with an offset or "Z" are fixed in time; dates without one are read in the chosen time zone. Unix timestamps with up to 10 digits are seconds, and longer ones are milliseconds.
A date like 03/04/2025 means March 4 in the US and 3 April almost everywhere else. When both readings are possible, the converter shows a choice.
l, jS F Y → Tuesday, 4th March 2025.%Y-%m-%d %H:%M → 2025-03-04 14:30.| Format | Example | Used in |
|---|---|---|
| ISO 8601 | 2025-03-04T14:30:05+03:30 | APIs, JSON, logs |
| RFC 3339 | 2025-03-04 14:30:05+03:30 | Internet protocols, Go, YAML |
| RFC 2822 | Tue, 04 Mar 2025 14:30:05 +0330 | Email headers, RSS |
| HTTP date | Tue, 04 Mar 2025 11:00:05 GMT | HTTP headers, cookies |
| SQL DATETIME | 2025-03-04 14:30:05 | MySQL, SQL Server |
| Unix time | 1741086005 | Databases, programming |
For data you keep or send between systems, ISO 8601 in UTC (2025-03-04T11:00:05Z) is the safest choice. It sorts correctly as text, every language can parse it, and it carries no ambiguity about the day or month. Convert to local time and friendlier formats only when you show the date to a person.
Year, month, day, then the time: 2025-03-04T14:30:05, followed by Z for UTC or an offset such as +03:30.
March 4 in the US, 3 April in most other countries. The converter asks you when a date could be read both ways.
Use date() with tokens: date("Y-m-d H:i:s") gives 2025-03-04 14:30:05. Try your pattern in the Custom format box.
Often used together with the Date Format Converter.
Converts between Unix epoch time and readable dates, in both directions.
One time in many time zones, plus a meeting planner.
Adds or subtracts a period from a date to give a new date.