Date Locale Previewer – Online Intl.DateTimeFormat Visualizer
Select a date, time zone, and locale to see how it appears in various formats (long, short, etc.). Ensure correct i18n.
UD5 Toolkit
weekday, year, month, day are ignored. Similarly, timeStyle overrides hour, minute, second. For full control over every field, leave both dateStyle and timeStyle unset and configure each component individually.dateStyle/timeStyle options require Chrome 76+, Firefox 79+, Safari 14+, or Edge 79+. The formatToParts() method is available in Chrome 57+, Firefox 51+, Safari 11+, and Edge 18+. For legacy browsers, consider using a polyfill like @formatjs/intl-datetimeformat.timeZone option with an IANA timezone string (e.g., 'America/New_York', 'Asia/Tokyo', 'Europe/London'). Use Intl.supportedValuesOf('timeZone') (Chrome 99+, Firefox 119+) to get a list of supported timezones. For older browsers, you can use a library like luxon or date-fns-tz. The timezone conversion happens automatically—the input Date object remains in UTC milliseconds.hour12 option controls whether the time is displayed in 12-hour format (with AM/PM) or 24-hour format. Set it to true for 12-hour time, false for 24-hour. When omitted (or undefined), the locale's default convention is used—e.g., en-US defaults to 12-hour, while de-DE defaults to 24-hour. Note that hour12: false with en-US locale will display time like "14:30" instead of "2:30 PM".formatToParts() returns an array of objects, each with a type and value. Types include: weekday, era, year, month, day, dayPeriod, hour, minute, second, fractionalSecond, timeZoneName, and literal (for separators like "/", "-", spaces). This is incredibly useful for custom rendering—e.g., you can style each part differently in a UI or extract specific components programmatically.calendar option to specify calendars like 'buddhist', 'chinese', 'hebrew', 'islamic', 'japanese', 'persian', etc. Combine with an appropriate locale for best results—e.g., new Intl.DateTimeFormat('th-TH-u-ca-buddhist', { calendar: 'buddhist' }). The -u-ca- extension in the locale tag can also specify the calendar. Support varies by browser and locale combination.toLocaleDateString() is a convenience method on Date objects that internally uses Intl.DateTimeFormat. However, Intl.DateTimeFormat offers more control: you can create a reusable formatter instance, access resolvedOptions() to inspect what the browser resolved, use formatToParts() for granular access, and pass the full range of options. For one-off formatting, toLocaleDateString() is fine; for production applications with repeated formatting, Intl.DateTimeFormat instances are more performant and flexible.@formatjs/intl-datetimeformat which provides a consistent polyfill with the latest CLDR data, or use server-side formatting.en-US (English, United States), zh-Hant-TW (Chinese, Traditional script, Taiwan), pt-BR (Portuguese, Brazil), ar-EG (Arabic, Egypt). You can also include Unicode extensions like -u-ca-buddhist for calendar or -u-nu-arab for numbering system. Use Intl.supportedValuesOf('locale') in modern browsers to get available locales, or check Intl.DateTimeFormat.supportedLocalesOf(['your-tag']) to test if a specific locale is supported.Select a date, time zone, and locale to see how it appears in various formats (long, short, etc.). Ensure correct i18n.
Adjust rotateX/Y/Z and translate to see a 3D box in real time. Copy optimized CSS transform.
Compose messages with bold, italic, links, and code. See the raw HTML or Markdown for your Telegram bot API calls.
Paste a Quartz cron expression (with seconds field) and translate it to standard Unix cron. For devops migrations.
Paste a potential XSS vector and see if it executes in a sandboxed iframe. For security researchers and education.
Drop a folder of images and convert all to the same format at once. Choose quality and download as ZIP. Local only.
Explore all Intl APIs: NumberFormat, DateTimeFormat, RelativeTimeFormat, ListFormat. See outputs for any locale. Powerful i18n.
Paste rich text and clean it to plain text. Normalize line endings and whitespace. Prepare for code or databases.
Write to shared storage and run a worklet to process data. Learn the privacy‑preserving alternative to third‑party cookies.
Format your SQL code with consistent indentation. Choose 2 or 4 spaces. No syntax validation, just neat output.
Insert a blank line between each line of text. Perfect for blog drafts or scripts. One‑click converter. Local.
Write text with inline footnote markers and this tool will move the notes to the bottom and add proper Markdown links. Saves time.
Write JavaScript code and see the output or console.log results immediately. Safe iframe sandbox. For quick experiments.
Paste a phone number and format it according to the E.164 standard. Identify country and detect common typos. Local parser.
Type raw HTML and see the escaped version, then see how it renders when unescaped. Understand encoding better.
Paste text and align it left, center, right, or fully justify by inserting spaces. Simple formatting helper. Pure browser.
Build an iframe with different sandbox flags and see live which features are blocked. For secure embedding.
Check if an IBAN has the correct length and structure for its country. Early validation, no bank connection.
Drop an image that might have wrong extension and see its real format (JPEG, PNG, WebP) based on header bytes.
Understand which file system to choose for your SD card based on capacity and device. A quick guide, no actual formatting.
Paste any JavaScript expression and see its evaluated type and value. Understand JS coercion and type quirks. Educational.
Apply dyslexia‑friendly fonts, spacing, and background to any text. Preview and copy the formatted version. Improve readability.
Write or paste HTML, CSS, and JavaScript and instantly see the rendered output in a sandboxed iframe. A handy frontend prototyping tool.