Unix Timestamp Converter

Convert Unix timestamps to human-readable dates and times

Timestamp Information

Unix Timestamp 1617648094
Timestamp (seconds) 1617648094
Full Date & Time
-
Timestamp: 1617648094

Date & Time

ISO 8601 -
RFC 2822 -
Relative Time -

Components

Year -
Month -
Day -
Day of Week -
Time -

Developer Tools

Three ways to embed or access timestamps programmatically.

JS Widget — hover tooltips on any page

Add one <script> tag to any HTML page. The widget scans the page for Unix timestamps and shows a human-readable date tooltip on hover. Timezone is auto-detected from the visitor's browser by default.

<script src="https://tmstmp.dev/tmstmp.js"></script>

Override timezone and/or format via data-* attributes or query params:

<!-- force a specific timezone -->
<script src="https://tmstmp.dev/tmstmp.js" data-timezone="America/New_York"></script>

<!-- custom format + timezone -->
<script src="https://tmstmp.dev/tmstmp.js"
        data-format="YYYY-MM-DD HH:mm:ss"
        data-timezone="Europe/Madrid"></script>

<!-- or via query params -->
<script src="https://tmstmp.dev/tmstmp.js?format=DD/MM/YYYY&timezone=Asia/Tokyo"></script>

Override at runtime or re-scan dynamically added content:

window.tmstmp.config.timezone = 'Australia/Sydney';
window.tmstmp.scan(document.getElementById('my-container'));

Text endpoint — plain text date

Returns a plain-text human-readable date. Useful for scripts, CLI tools, or any context where HTML is not wanted. Defaults to UTC when no timezone is given.

https://tmstmp.dev/txt/{timestamp}
https://tmstmp.dev/txt/{timestamp}?timezone=America/New_York
https://tmstmp.dev/txt/{timestamp}?format=YYYY-MM-DD HH:mm:ss&timezone=Asia/Tokyo
$ curl https://tmstmp.dev/txt/1708000000
Thu, Feb 15 2024 · 21:46:40 UTC

$ curl "https://tmstmp.dev/txt/1708000000?timezone=America/New_York"
Thu, Feb 15 2024 · 16:46:40 EST

Image endpoint — embeddable PNG

Returns a PNG image of the date. Hotlink it directly in markdown, emails, or any <img> tag. Defaults to UTC when no timezone is given.

https://tmstmp.dev/img/{timestamp}
https://tmstmp.dev/img/{timestamp}?timezone=Europe/Madrid
https://tmstmp.dev/img/{timestamp}?format=DD/MM/YYYY&timezone=Asia/Tokyo
<img src="https://tmstmp.dev/img/1708000000?timezone=Europe/Madrid" alt="timestamp">

![date](https://tmstmp.dev/img/1708000000?timezone=Europe/Madrid)

More parameters coming soon: color, bg, size.

Parameters reference

timezone= widget • /txt • /img

Any IANA timezone name (DST-aware). Invalid values fall back silently to UTC. The widget auto-detects the browser timezone when omitted; the endpoints default to UTC.

America/New_York    Europe/Madrid    Asia/Tokyo    Australia/Sydney    UTC
format= widget • /txt • /img

Custom date/time pattern. Tokens are replaced longest-first so YYYY always wins over YY, etc. Values reflect the specified timezone= (UTC by default).

Token Padded Token No pad
YYYY2026YY26
MM02M2
DD07D7
HH09H / h9
mm05m5
ss03s3