SQL Indenter - Online Just Prettify Your Queries
Format your SQL code with consistent indentation. Choose 2 or 4 spaces. No syntax validation, just neat output.
UD5 Toolkit
Generate perfect date format strings for MySQL, PostgreSQL, SQL Server, Oracle & SQLite. Real-time preview & instant SQL snippets.
SELECT DATE_FORMAT(NOW(), '%Y-%m-%d') AS formatted_date;
| Specifier | Description | Example |
|---|
DATE_FORMAT(date, format) with percent-prefixed specifiers like %Y, %m, %d.
PostgreSQL uses TO_CHAR(date, format) with all-uppercase specifiers like YYYY, MM, DD.
The two systems have completely different format string syntaxes, which is why this generator exists — to help you quickly switch between them without memorizing both.
FORMAT(date, format) which uses .NET-style format strings (e.g., yyyy-MM-dd, MMMM dd, yyyy).
For older SQL Server versions, you must use CONVERT() with predefined style codes or manually concatenate date parts using DATEPART().
The FORMAT function is more flexible but can be slower on large datasets since it relies on CLR.
strftime(format, date_string) function with format specifiers similar to MySQL (percent-prefixed like %Y, %m, %d).
Important: In SQLite, %M means minutes (unlike MySQL where %i is minutes and %M is the full month name).
Also, SQLite stores dates as TEXT strings, so you need to ensure your date column is in a recognized format like ISO 8601.
YYYY-MM-DD) is universally recognized and works across all major databases.
For timestamps, YYYY-MM-DD HH24:MI:SS (or equivalent) is the most portable.
When building applications that may switch databases, always store dates in ISO 8601 format and format them at the application layer when possible.
This generator helps you create the correct format string for each database's specific syntax.
TO_CHAR with MONTH or DAY pads the result with trailing spaces to a fixed width (9 characters for MONTH, 9 for DAY).
To remove these extra spaces, wrap the result with TRIM(): SELECT TRIM(TO_CHAR(SYSDATE, 'MONTH')) FROM dual;.
Alternatively, use MON (abbreviated) or fmMONTH (fill-mode prefix) to suppress padding.
YEAR(), MONTH(), DAY(); PostgreSQL uses EXTRACT(YEAR FROM date);
SQL Server uses DATEPART(year, date); Oracle uses EXTRACT(YEAR FROM date); SQLite uses strftime('%Y', date).
For simple extraction, these functions are often cleaner than full format strings.
DATE_FORMAT(FROM_UNIXTIME(epoch), '%Y-%m-%d').
In PostgreSQL: TO_CHAR(TO_TIMESTAMP(epoch), 'YYYY-MM-DD').
In SQL Server: FORMAT(DATEADD(second, epoch, '1970-01-01'), 'yyyy-MM-dd').
In Oracle: TO_CHAR(TIMESTAMP '1970-01-01 00:00:00' + NUMTODSINTERVAL(epoch, 'SECOND'), 'YYYY-MM-DD').
In SQLite: strftime('%Y-%m-%d', epoch, 'unixepoch').
Format your SQL code with consistent indentation. Choose 2 or 4 spaces. No syntax validation, just neat output.
Experiment with JavaScript Intl.DateTimeFormat options. Choose locale, dateStyle, timeStyle, hour12 and see live output. Copy the code snippet for your project.
Create vertically oriented text layouts with `writing‑mode`. See the effect and copy the complete CSS. For vertical languages.
Create a DMARC policy record with percentage, reporting addresses, and alignment mode. Validate and copy the final DNS TXT.
Create a CAA DNS record to specify which certificate authorities can issue SSL certs for your domain. Prevent mis‑issuance.
Select PostCSS plugins (Autoprefixer, nesting, custom‑media) and generate a postcss.config.js file. Streamline your CSS pipeline.
Build a vertical timeline by entering events with dates and descriptions. Export as image or HTML. Perfect for project milestones.
Enter a human name and translate it into a weird alien-sounding version using letter replacement rules.
Paste your JSON‑LD or Microdata and test it against Google's Rich Results criteria. Get warnings. Local linter.
Search for any file extension to see its full name, MIME type, and description. Covers thousands of entries. Static data.
Type or paste Korean Hangul and see the revised romanization. Also works backwards for basic words. Study aid.
Generate cryptographically secure BIP39 mnemonic phrases (12 or 24 words) for HD wallet seeds. All entropy generated locally.
Generate a humorous, realistic‑looking git commit message. Perfect for testing or filling mock repos.
Visually name grid areas in a table and generate grid‑template‑areas CSS. Perfect for complex layouts. Drag‑free.
Paste CSV data and instantly get a formatted MediaWiki table code. Ideal for Wikipedia editors and internal wikis.
Inspect any website's SSL/TLS certificate details: issuer, expiry date, subject, and SANs. Verify certificate chains. All checks are private and require no server upload.
Encode a hidden message using zero‑width characters. The message looks like normal text. Decode with the same tool.
Choose tabular‑nums, diagonal‑fractions, ordinal and see the effect on a numeric list. Elegant data presentation.
Turn a cardinal number (23) into its ordinal form (23rd). Supports large numbers. Simple and quick.
Generate a random first and last name typical for US, UK, or Australia. With optional middle initial. Useful for test data.
Beautify and format your CSS stylesheets instantly. Organize, minify, or prettify CSS code for better readability. Processed securely on client-side.
Paste N‑Triples data and convert it to a compact JSON‑LD representation. Work with linked open data. Local.
Paste CSV data and transform it into a well‑structured YAML array of objects. Choose key mapping. Perfect for devOps and data migration.
Generate a .gitattributes file with proper line‑ending handling, binary detection, and linguist overrides. Clean repo setup.
Paste lines of text and automatically convert to an HTML ordered list with correct numbering and indentation.
Detect browser support for font‑tech() and font‑format() values in @font‑face src. Check COLRv1, variable, etc.
Set up first‑line indentation and hanging punctuation. See how they affect reading flow. Copy the CSS.
Multiple digital counters for tracking stitches, rows, and pattern repeats. Increment, reset. Works on mobile.
Patch the PerformanceObserver and show your page’s Core Web Vitals as you browse. See real‑time scores and suggestions.
Type an abbreviation and its full form to get the proper `<abbr title='...'>` HTML. For accessible markup.