Format, validate, encode, and test — the everyday developer toolkit.
JSON formatter, regex tester, base64 encoder, and UUID and timestamp generator. The small text-transforming tools you reach for several times a week, all running locally in your browser.
Test regular expressions with live match highlighting
Format, validate, and minify JSON with error highlighting
Encode and decode text and images to Base64
Generate UUIDs and convert between unix timestamps and dates
Cryptographically secure passwords and EFF-style passphrases with a live entropy meter
Consolidate a list of strings into a compact regex by sharing common prefixes
Identify file types from magic bytes — fully client-side, file never leaves the browser
Encode and decode HTML entities and URL components, with a quick reference table
Searchable reference for every HTTP status code with descriptions and when to use them
4 min read
Code utilities are the small, quick tools every developer reaches for several times a week: testing a regex against sample input, pretty-printing a JSON API response, encoding a string to base64 for an HTTP header, grabbing a UUID for a test fixture. Each one is a 30-second task on its own, but you'll do them often enough that having a fast, trustworthy place to do them quietly pays for itself.
Unlike SnipKit's CSS, layout, and color tools, the code category doesn't produce visual output — these tools transform text. You paste an input, you get an output, you copy it back into your editor. The work is invisible until you need it, which is exactly the point.
g/i/m/s/u/y flag toggles, and copy buttons for both /pattern/flags and the JS literal form (const re = /…/g;).btoa/atob in a UTF-8 safe encoder so emoji and CJK characters survive the round trip, with a URL-safe toggle for tokens and JWTs.crypto.randomUUID() API and the current time in Unix seconds, Unix milliseconds, and ISO 8601 — copy any of them with one click.SnipKit's code utilities are built around four principles:
Yes. Every tool on SnipKit is free to use, with no accounts, no trials, and no paywall.
No. SnipKit has no sign-up flow at all. Open the site, use the tool, copy the code.
Yes. Each tool saves your current state to your browser's localStorage so you can come back later or refresh without losing progress. Nothing is sent to a server. Clearing your browser data removes the saved state.
Yes. Anything you generate is yours — no license, no attribution required. Use it in client work, personal projects, or commercial products.
No. All four code utilities in this category run entirely in your browser as client-side JavaScript. Your regex patterns, JSON payloads, the strings you base64-encode, and the UUIDs you generate never touch a SnipKit server — we can't see them, which means we can't log them.
Once the page is loaded in your tab, yes — every tool runs locally with zero network calls, so a flaky connection or a train tunnel doesn't stop you from formatting JSON or testing a regex. A hard refresh without a connection will fail, though — we don't ship a service worker yet.
The UUID generator uses the browser's built-in crypto.randomUUID() API, which produces RFC 4122 version 4 UUIDs from a cryptographically secure random source. They're suitable for database IDs, API keys, correlation IDs, and test fixtures.
Yes. Raw btoa() breaks on non-Latin-1 characters, so the tool wraps it in a UTF-8 safe encoder — emoji, CJK characters, accented Latin, and anything else in the BMP encode and decode correctly. A URL-safe toggle swaps the +/ characters for -_ and strips padding if you need to use the output in a URL or a JWT.
Yes. If the input isn't valid JSON, the tool tells you the line and column of the error instead of silently breaking. It handles pretty-print, minify, and validate from the same input box.