HatScripts developer tools & SVG flags

800+ circular SVG flags, userscripts, UI snippets, converters and reference cards.

circular SVG flags
800+circular SVG flags
catalogued userscripts
12catalogued userscripts
developer tools
20+developer tools
cheat sheets
17cheat sheets

Explore the hubs

Six areas, each searchable and shareable by URL.

Tools and downloads

Flag exports, code utilities and technical references.

Find, configure and export

Search for a tool or asset, adjust its settings and save the result.

  1. 01

    Find a tool or asset

    Search flags, tools, cheat sheets, userscripts and posts using the command palette.

  2. 02

    Adjust the settings

    Set flag size and border, SVG precision, regex flags or cron timezone. Save supported tool settings as presets or JSON snapshots.

  3. 03

    Copy or download

    Export flags as SVG, PNG, ZIP or sprites, tool results in the available formats, and cheat sheets as Markdown.

  4. 04

    Share a view

    Supported share links preserve search terms, selected filters or tool settings. Use sample data rather than secrets in shared URLs.

Free online developer tools

Regex, cron, UUID and SVG utilities

HatScripts includes a regex tester with live highlighting, a cron expression generator with timezone previews, a UUID generator, a JSON formatter, Base64 encoding, hashing and an SVG optimizer. Copy results or export them in the available formats.

Next to the tools sits an asset library. The circle flags collection has 800+ circular SVG country, state, language and symbol flags, each downloadable as SVG or PNG, or bundled as a ZIP or sprite sheet. The UI assets hub adds CSS box shadows, gradients, SVG patterns, loaders and a recolourable icon set.

For reference, there are cheat sheets for Flexbox, CSS Grid, regex, Git, Tailwind v4 and keyboard codes, plus a catalogue of Tampermonkey and Violentmonkey userscripts with full source preview before you install anything.

Featured tools

Regex tester

Live match highlighting, capture group explorer, named-group replacement preview and an HTML or PDF match report.

Cron expression generator

Parses 5-field, 6-field and Quartz syntax, explains each field in plain English and lists the next 10 runs in any timezone.

UUID generator

Generates cryptographically random v4 UUIDs with crypto.randomUUID. Click any value to copy it.

SVG optimizer

Strips metadata, rounds path precision and shows a before/after diff. Batch mode zips a whole folder of icons.

Circle flags

Search by country name, ISO code or alias. Export SVG, PNG, CSS data URI, JSX, ZIP or sprite.

CSS box shadow generator

A six-step elevation scale plus inner, glow and ring shadows, previewed on light and dark surfaces.

Examples of use

  • Front-end developers

    Grab a flag icon for a language switcher, a shadow scale for a design system or a Flexbox reminder mid-layout.

  • Backend and DevOps engineers

    Check a cron schedule before it ships, test a log-parsing regex or mint UUIDs for fixtures.

  • Designers

    Export recoloured icons, gradients and SVG patterns without opening a design tool.

  • Power users

    Review and install userscripts that clean up YouTube, GitHub, Reddit and other daily sites.

Developer tools FAQ

Is there a free online regex tester on HatScripts?+

Yes. The regex tester in Dev Tools highlights matches as you type, lists every capture group, previews replacements and exports a report. It uses JavaScript regular expressions.

How do I generate a cron expression?+

Open the cron parser in Dev Tools, type or edit an expression, and the page explains each field and shows the next 10 run times. Lint mode flags risky patterns such as day-of-month and day-of-week combinations that never match.

Where can I download circle flag icons?+

The Flags hub has 800+ circular SVG flags covering countries, US states and other subdivisions, languages, organizations and historical flags. Each one downloads as SVG or PNG.

Related on HatScripts

Latest from the blog

Frequently asked questions

What does HatScripts cost?+

The tools and downloads are free. Asset reuse remains subject to the licence listed for each collection.

Do my files or pasted text get uploaded?+

These tools process input locally. Shared URLs and exported snapshots can contain that input, so use non-sensitive samples when sharing. See the privacy page for information about Google Analytics.

Can I use the flag SVGs commercially?+

The artwork comes from the MIT-licensed circle-flags project, so commercial use is allowed. Some countries regulate depictions of their own flag in branding, so check local rules for logo or packaging use.

What formats can I export flags in?+

Single SVG, PNG at 32–512px, CSS data URI, JSX component markup, plus bulk ZIP downloads and a combined SVG sprite for multi-flag exports.

Are the userscripts safe to install?+

Each entry links to its canonical source so you can read the code before installing. HatScripts indexes scripts and shows changelogs and version diffs rather than re-hosting modified copies.

Does HatScripts work offline?+

Once a page has loaded, the tools on it keep working without a connection using the already loaded JavaScript. Downloading new flag files still needs network access.

Which flag file format should I use in a web app?+

Use a plain SVG file reference for lists and pickers so the browser caches one copy per country. Inline the SVG only when you need to animate or recolour individual paths, and reach for a CSS data URI when the flag is decorative and lives in a pseudo-element.

How do I export several flags at once?+

Select the countries you want in the flags hub, then choose the bulk ZIP download for individual files or the combined SVG sprite when you would rather ship one request and reference each flag by id.

What PNG sizes are available for flags?+

Flag detail pages render PNG at 32, 64, 128, 256 and 512 pixels, drawn from the same vector source, so every size stays crisp on high-density screens.

Do I need Tampermonkey to use the userscripts?+

Use a userscript manager such as Tampermonkey or Violentmonkey. Review each script’s metadata, matching sites and permissions before installing.

How do I read a userscript before installing it?+

Every script has a detail page with a syntax-highlighted source preview, its metadata block, a changelog and a version diff, so you can see exactly what changed between releases before you install or update.

Are favorites, install history and read posts stored on a server?+

No. Favorites, install counts, activity timelines and read-post state use local storage on the current device. Clearing site data resets them, and nothing syncs between devices.

Can I share a filtered view of a hub?+

Yes. Search text and selected tags are written to the URL in the userscripts hub, so copying the address bar sends someone the exact filtered result you are looking at.

Is there a keyboard shortcut for finding things quickly?+

Press Cmd+K on macOS or Ctrl+K elsewhere to open the command palette, which searches flags, userscripts, tools, cheat sheets and blog posts from one input.

Are the country names and ISO codes kept up to date?+

Flag metadata is generated from an open country dataset covering ISO 3166-1 alpha-2 codes, regions and common alternative names, including subdivisions such as England, Scotland and Wales.

Can I subscribe to userscript updates?+

Yes. The userscripts hub publishes an RSS feed and a JSON feed of recent additions and version bumps, both linked from the footer, so a reader can track changes without visiting the site.

Start with the flag library

Search 800+ flags by name, ISO code, alias or region, then export exactly the format your project needs.