Pages

Topics

Tools

↑↓navigate↵openescclose

Programming syntax, explained one concept at a time.

Focused guides on variables, data types, control flow, functions, classes, and the standard library — short references you can read and copy while you work.

Syntax guides
3,965+
Topics
14
Browser tools
21
guides.py
from dataclasses import dataclass


@dataclass
class Guide:
    topic: str
    minutes: int


def total_minutes(guides: list[Guide]) -> int:
    return sum(guide.minutes for guide in guides)

Dataclasses and type hints

Open guide

Browse by topic

Every category in the library, with the number of published guides.

Topic directory

Latest syntax guides

The four most recent guides, straight from the library.

View all

Browser developer tools

21 utilities that run entirely in your browser, with nothing sent to a server.

All tools
JSON FormatterFormat, validate, and minify JSON, explore it as a foldable tree or a sortable table, filter it by JSONPath, flatten it to a.b[0] keys and back, open a local .json file, repair broken syntax, and generate TypeScript, Zod, Go, Pydantic or Rust types.YAML ↔ JSONConvert a YAML file into JSON and back, document by document, then lint it: tabs, duplicate keys, values a parser silently turns into a boolean or a number, and unpinned images. Read any value by path, such as spec.template.spec.containers[0].image.Text Diff CheckerCompare two texts or config files side by side or as a unified diff — pasted or dropped straight from two local files — with the changed words highlighted, JSON-aware options and a downloadable .patch.Regex TesterTest a regular expression against sample text with live match highlighting, capture groups, a token-by-token explainer, a pass or fail test suite, ReDoS warnings and the real match time.SQL FormatterFormat, indent, and minify SQL for PostgreSQL, MySQL, and SQLite, choose the keyword case, and lint the query for missing WHERE clauses, SELECT * and other hazards.CSV ↔ JSONTurn CSV, TSV or JSON into a sortable table with a column profile, then write it back as JSON, CSV, TSV, a Markdown table, a TypeScript interface or SQL CREATE TABLE + INSERT, from a pasted block or a local file.JWT DecoderDecode a JSON Web Token header and payload, read every standard claim in UTC and your time zone, verify HS256, RS256, PS256 or ES256 signatures with a secret, a PEM public key, a JWK or a JWKS, and sign a new token in the browser.Base64 Encode / DecodeConvert UTF-8 text or a local file to Base64 and back, with URL-safe output, a data URI option, an image preview and a file download.URL Parser & EncoderParse a URL into protocol, origin, port, path segments, query parameters and basic-auth parts, strip utm_* and click ids in one press, percent-encode or decode a single value or a whole column of them, and copy a fetch() or cURL request for the result.Hash GeneratorGenerate SHA-1, SHA-256, SHA-384, SHA-512 and MD5 digests of text or a local file, compare them with an expected checksum, and sign with HMAC-SHA256, HMAC-SHA384 or HMAC-SHA512.cURL to CodePaste a curl command or build the request field by field and get JavaScript fetch, TypeScript, Axios, Python, Go, C#, Java, Rust, PowerShell, PHP or HTTPie code. Query params, headers, JSON and multipart bodies stay intact, and the request exports as a Postman Collection.UUID GeneratorGenerate UUID v4, time-ordered UUID v7, ULID or NanoID, format one to a hundred of them as lines, JSON or a SQL IN list, download the batch as .txt, .json or .sql, and break any UUID or ULID into its version, variant, embedded timestamp and BINARY(16) bytes.Timestamp ConverterConvert Unix timestamps and date strings in both directions, read a Discord, Twitter or Instagram snowflake id back to its instant, show the ISO week, day of the year and leap year, measure the exact gap between two instants, and copy JavaScript, Python, PostgreSQL or Go code for the moment.Cron Expression ParserExplain a five-field cron expression in plain English, build it field by field, and copy the schedule as a crontab, GitHub Actions, Kubernetes, Vercel or AWS EventBridge snippet.Color & ContrastCheck any text color against any background with WCAG 2.1 and APCA, fix it to AA in one click, and build a 50–950 shade scale, harmonies, design tokens and color-vision previews..env ↔ K8s / ComposeConvert .env variables into a Kubernetes Secret or ConfigMap, a Docker Compose environment block, JSON, GitHub Actions env, shell exports, a Docker --env-file, env.d.ts or a Zod schema — with a linter and a comparison against .env.example.SQL → TS / ORM / ERDParse CREATE TABLE statements for PostgreSQL, MySQL and SQLite and generate TypeScript, Zod, Go, Prisma, Pydantic, Drizzle ORM, Rust sqlx or Mermaid ERD, with a column summary, camelCase options and a file download.Docker Run ↔ ComposeConvert a docker run command into a compose.yaml service and back, inspect every service in a Compose file, and run a production and security checklist over it: pinned images, privileged mode, the Docker socket, published database ports, restart policy, healthcheck and memory limits.Status & Exit CodesLook up an HTTP status, a container or Kubernetes exit code, or a network errno, then read the checks that actually resolve it, the retry strategy, and the same response written for Next.js, Express, FastAPI, Go and Nginx.chmod CalculatorTurn Read, Write and Execute checkboxes into octal and symbolic permissions, audit 777 or setuid for what it actually opens, look up the mode ~/.ssh, .env and a web root need, add the Kubernetes defaultMode decimal, and calculate what a umask leaves for new files and directories.CIDR & Subnet CalculatorWork out the network, broadcast, usable host range and masks for an IPv4 block under standard, AWS/Azure or GCP reservations, check whether an address or a smaller block sits inside it, and split it into subnets with Terraform, Nginx and UFW snippets.