Discord Unix Timestamp Converter
Already have a Unix timestamp — from an API response, a bot, or a log file — instead of a date to pick? Paste it below to see the date it represents and every Discord timestamp code built from it.
Human-readable
Enter a Unix timestamp above.
All 7 Discord codes
| Renders as | Code |
|---|---|
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — |
What counts as a Unix timestamp
A Unix timestamp is a count of seconds since January 1, 1970 UTC — for example 1735689600 is January 1, 2025, midnight UTC. It carries no timezone of its own, which is exactly why Discord's <t:UNIX:FORMAT> markup uses it: the same number renders correctly in every reader's own local time zone. For the full breakdown of the markup itself, see the format code reference.
Seconds vs. milliseconds
Discord's timestamp markup expects seconds (10 digits for any recent date), but plenty of APIs and languages — JavaScript's Date.now() among them — return milliseconds (13 digits) instead. Paste either into the box above; the converter detects which one you have and adjusts automatically. If you're pasting a raw code straight into Discord without this tool, a stray millisecond value is the single most common reason a timestamp shows as raw text instead of rendering — see why a Discord timestamp might not be working.
Common sources of a Unix timestamp
- Bot frameworks — discord.js's
message.createdTimestamp, Python'sint(time.time()), or any language's standard epoch call. - REST APIs — fields like
created_at,updated_at, orexpires_atfrom a third-party service you're piping into Discord. - Server logs and databases — many systems store event times as raw epoch integers rather than formatted dates.
- Discord snowflake IDs — a message, user, or channel ID technically encodes a timestamp, but against Discord's own epoch (2015-01-01), not the Unix epoch, so a raw snowflake needs decoding first before it's a Unix timestamp this tool can use — see the Discord snowflake decoder for that conversion done correctly.
Turning it into a Discord code
Once you have the Unix timestamp, wrapping it for Discord is just <t:UNIX:FORMAT> — the table above already builds all seven for you, so copy whichever one fits the message: R for a relative "in X" phrase, F for a full formal date and time, or any of the other five. If you'd rather generate the same codes from a script instead of pasting into a page, the same computation is available as JSON over HTTP — see the developer portal & API.