# elci.dev > Free developer tools: UUID/ULID generators, Base64, JSON, JWT, hashing, regex testing, and more. No sign-up required. This is the full-content companion to llms.txt, suitable for agents that need to cite tool descriptions, guides and comparisons verbatim. ## Tools ### JSON Formatter - URL: https://elci.dev/json-formatter - What it is: Format and validate JSON See the tool page for its FAQ, which answers common questions about JSON Formatter (privacy, how it works, edge cases). ### UUID Generator - URL: https://elci.dev/uuid - What it is: Generate UUIDs of different versions See the tool page for its FAQ, which answers common questions about UUID Generator (privacy, how it works, edge cases). ### Base64 Encoder - URL: https://elci.dev/base64-encoder - What it is: Encode text to Base64 See the tool page for its FAQ, which answers common questions about Base64 Encoder (privacy, how it works, edge cases). ### Base64 Decoder - URL: https://elci.dev/base64-decoder - What it is: Decode Base64 to text See the tool page for its FAQ, which answers common questions about Base64 Decoder (privacy, how it works, edge cases). ### ULID Generator - URL: https://elci.dev/ulid-generator - What it is: Generate ULIDs See the tool page for its FAQ, which answers common questions about ULID Generator (privacy, how it works, edge cases). ### Self Signed Cert - URL: https://elci.dev/self-signed-certificate - What it is: Create self-signed x509 certificates See the tool page for its FAQ, which answers common questions about Self Signed Cert (privacy, how it works, edge cases). ### JWT Decoder - URL: https://elci.dev/jwt-decoder - What it is: Decode JSON Web Tokens See the tool page for its FAQ, which answers common questions about JWT Decoder (privacy, how it works, edge cases). ### Hash Generator - URL: https://elci.dev/hash-generator - What it is: Generate MD5, SHA-1, SHA-256 hashes See the tool page for its FAQ, which answers common questions about Hash Generator (privacy, how it works, edge cases). ### URL Encoder - URL: https://elci.dev/url-encoder - What it is: Percent-encode text or URLs See the tool page for its FAQ, which answers common questions about URL Encoder (privacy, how it works, edge cases). ### URL Decoder - URL: https://elci.dev/url-decoder - What it is: Decode percent-encoded text See the tool page for its FAQ, which answers common questions about URL Decoder (privacy, how it works, edge cases). ### What's My IP - URL: https://elci.dev/ip - What it is: Show your public IP, location and reverse DNS See the tool page for its FAQ, which answers common questions about What's My IP (privacy, how it works, edge cases). ### Timestamp Converter - URL: https://elci.dev/timestamp-converter - What it is: Convert Unix timestamps to and from dates See the tool page for its FAQ, which answers common questions about Timestamp Converter (privacy, how it works, edge cases). ### Regex Tester - URL: https://elci.dev/regex-tester - What it is: Test regular expressions against sample text See the tool page for its FAQ, which answers common questions about Regex Tester (privacy, how it works, edge cases). ### Password Generator - URL: https://elci.dev/password-generator - What it is: Generate strong random passwords See the tool page for its FAQ, which answers common questions about Password Generator (privacy, how it works, edge cases). ### Color Converter - URL: https://elci.dev/color-converter - What it is: Convert colors between HEX, RGB and HSL See the tool page for its FAQ, which answers common questions about Color Converter (privacy, how it works, edge cases). ### QR Code Generator - URL: https://elci.dev/qr-code-generator - What it is: Generate a QR code from text or a URL See the tool page for its FAQ, which answers common questions about QR Code Generator (privacy, how it works, edge cases). ### Crontab Generator - URL: https://elci.dev/crontab-generator - What it is: Build and explain cron expressions See the tool page for its FAQ, which answers common questions about Crontab Generator (privacy, how it works, edge cases). ### Random Number Generator - URL: https://elci.dev/random-number-generator - What it is: Generate random integers in a range See the tool page for its FAQ, which answers common questions about Random Number Generator (privacy, how it works, edge cases). ### CSV ↔ JSON Converter - URL: https://elci.dev/csv-json-converter - What it is: Convert between CSV and JSON See the tool page for its FAQ, which answers common questions about CSV ↔ JSON Converter (privacy, how it works, edge cases). ### YAML ↔ JSON Converter - URL: https://elci.dev/yaml-json-converter - What it is: Convert between YAML and JSON See the tool page for its FAQ, which answers common questions about YAML ↔ JSON Converter (privacy, how it works, edge cases). ### Markdown Preview - URL: https://elci.dev/markdown-preview - What it is: Live preview of rendered Markdown See the tool page for its FAQ, which answers common questions about Markdown Preview (privacy, how it works, edge cases). ### Diff Checker - URL: https://elci.dev/diff-checker - What it is: Compare two texts and highlight differences See the tool page for its FAQ, which answers common questions about Diff Checker (privacy, how it works, edge cases). ### Case Converter - URL: https://elci.dev/case-converter - What it is: Convert text between camelCase, snake_case and more See the tool page for its FAQ, which answers common questions about Case Converter (privacy, how it works, edge cases). ### Lorem Ipsum Generator - URL: https://elci.dev/lorem-ipsum-generator - What it is: Generate placeholder Lorem Ipsum text See the tool page for its FAQ, which answers common questions about Lorem Ipsum Generator (privacy, how it works, edge cases). ### HTML Entity Converter - URL: https://elci.dev/html-entity-converter - What it is: Encode and decode HTML entities See the tool page for its FAQ, which answers common questions about HTML Entity Converter (privacy, how it works, edge cases). ### Slugify - URL: https://elci.dev/slugify - What it is: Convert text into a URL-safe slug See the tool page for its FAQ, which answers common questions about Slugify (privacy, how it works, edge cases). ### Number Base Converter - URL: https://elci.dev/number-base-converter - What it is: Convert between binary, octal, decimal and hex See the tool page for its FAQ, which answers common questions about Number Base Converter (privacy, how it works, edge cases). ### SQL Formatter - URL: https://elci.dev/sql-formatter - What it is: Format and beautify SQL queries See the tool page for its FAQ, which answers common questions about SQL Formatter (privacy, how it works, edge cases). ### HTML Formatter & Minifier - URL: https://elci.dev/html-formatter - What it is: Beautify or minify HTML markup See the tool page for its FAQ, which answers common questions about HTML Formatter & Minifier (privacy, how it works, edge cases). ### CSS Formatter & Minifier - URL: https://elci.dev/css-formatter - What it is: Beautify or minify CSS See the tool page for its FAQ, which answers common questions about CSS Formatter & Minifier (privacy, how it works, edge cases). ### JS Formatter & Minifier - URL: https://elci.dev/js-formatter - What it is: Beautify or minify JavaScript See the tool page for its FAQ, which answers common questions about JS Formatter & Minifier (privacy, how it works, edge cases). ### CSS Gradient Generator - URL: https://elci.dev/css-gradient-generator - What it is: Build linear and radial CSS gradients visually See the tool page for its FAQ, which answers common questions about CSS Gradient Generator (privacy, how it works, edge cases). ### Cubic Bezier Generator - URL: https://elci.dev/cubic-bezier-generator - What it is: Visualize and generate CSS cubic-bezier easing curves See the tool page for its FAQ, which answers common questions about Cubic Bezier Generator (privacy, how it works, edge cases). ### Box Shadow Generator - URL: https://elci.dev/box-shadow-generator - What it is: Design and generate CSS box-shadow values See the tool page for its FAQ, which answers common questions about Box Shadow Generator (privacy, how it works, edge cases). ### JSON to TypeScript - URL: https://elci.dev/json-to-typescript - What it is: Generate TypeScript interfaces from a JSON sample See the tool page for its FAQ, which answers common questions about JSON to TypeScript (privacy, how it works, edge cases). ### IP Subnet Calculator - URL: https://elci.dev/cidr-calculator - What it is: Calculate IPv4 subnet ranges from CIDR notation See the tool page for its FAQ, which answers common questions about IP Subnet Calculator (privacy, how it works, edge cases). ### Image to Base64 Converter - URL: https://elci.dev/image-to-base64 - What it is: Convert images to Base64 and back See the tool page for its FAQ, which answers common questions about Image to Base64 Converter (privacy, how it works, edge cases). ### Word & Character Counter - URL: https://elci.dev/word-counter - What it is: Count words, characters, sentences and reading time See the tool page for its FAQ, which answers common questions about Word & Character Counter (privacy, how it works, edge cases). ### Gitignore Generator - URL: https://elci.dev/gitignore-generator - What it is: Build a .gitignore from popular language and tool templates See the tool page for its FAQ, which answers common questions about Gitignore Generator (privacy, how it works, edge cases). ### Time Zone Converter - URL: https://elci.dev/timezone-converter - What it is: Convert a date and time between time zones See the tool page for its FAQ, which answers common questions about Time Zone Converter (privacy, how it works, edge cases). ### JWT Encoder - URL: https://elci.dev/jwt-encoder - What it is: Create and sign JWTs with HS256, HS384 or HS512 See the tool page for its FAQ, which answers common questions about JWT Encoder (privacy, how it works, edge cases). ### Bcrypt Generator & Checker - URL: https://elci.dev/bcrypt-generator - What it is: Hash a password with bcrypt or verify it against a hash See the tool page for its FAQ, which answers common questions about Bcrypt Generator & Checker (privacy, how it works, edge cases). ### Open Graph Preview - URL: https://elci.dev/og-preview - What it is: Preview a page's Open Graph and Twitter meta tags See the tool page for its FAQ, which answers common questions about Open Graph Preview (privacy, how it works, edge cases). ### Browser AI Tester - URL: https://elci.dev/browser-ai-tester - What it is: Test Chrome's built-in on-device AI APIs right in your browser See the tool page for its FAQ, which answers common questions about Browser AI Tester (privacy, how it works, edge cases). ### DNS Lookup - URL: https://elci.dev/dns-lookup - What it is: Query A, AAAA, MX, TXT, NS, SOA and CAA records for a domain See the tool page for its FAQ, which answers common questions about DNS Lookup (privacy, how it works, edge cases). ### Webhook Tester - URL: https://elci.dev/webhook-tester - What it is: Generate a URL and inspect every HTTP request sent to it See the tool page for its FAQ, which answers common questions about Webhook Tester (privacy, how it works, edge cases). ### P2P Voice Call - URL: https://elci.dev/p2p-voice-call - What it is: Voice call between two browsers via QR code or link See the tool page for its FAQ, which answers common questions about P2P Voice Call (privacy, how it works, edge cases). ### JSON Diff - URL: https://elci.dev/json-diff - What it is: Compare two JSON documents by structure See the tool page for its FAQ, which answers common questions about JSON Diff (privacy, how it works, edge cases). ### JSONPath Tester - URL: https://elci.dev/jsonpath-tester - What it is: Query JSON with JSONPath expressions See the tool page for its FAQ, which answers common questions about JSONPath Tester (privacy, how it works, edge cases). ### XML Formatter & Minifier - URL: https://elci.dev/xml-formatter - What it is: Format, minify and check XML See the tool page for its FAQ, which answers common questions about XML Formatter & Minifier (privacy, how it works, edge cases). ### HTTP Status Codes - URL: https://elci.dev/http-status-codes - What it is: Look up what every HTTP status code means See the tool page for its FAQ, which answers common questions about HTTP Status Codes (privacy, how it works, edge cases). ### Chmod Calculator - URL: https://elci.dev/chmod-calculator - What it is: Convert Unix permissions between octal and symbolic See the tool page for its FAQ, which answers common questions about Chmod Calculator (privacy, how it works, edge cases). ### Robots.txt Generator - URL: https://elci.dev/robots-txt-generator - What it is: Build a robots.txt file for your site See the tool page for its FAQ, which answers common questions about Robots.txt Generator (privacy, how it works, edge cases). ### Meta Tags Generator - URL: https://elci.dev/meta-tags-generator - What it is: Generate SEO, Open Graph and Twitter meta tags See the tool page for its FAQ, which answers common questions about Meta Tags Generator (privacy, how it works, edge cases). ### JSON to CSV Converter - URL: https://elci.dev/json-to-csv - What it is: Convert JSON arrays to CSV, flattening nested objects See the tool page for its FAQ, which answers common questions about JSON to CSV Converter (privacy, how it works, edge cases). ### JSON Schema Validator - URL: https://elci.dev/json-schema-validator - What it is: Validate JSON against a JSON Schema See the tool page for its FAQ, which answers common questions about JSON Schema Validator (privacy, how it works, edge cases). ### XML to JSON Converter - URL: https://elci.dev/xml-to-json - What it is: Convert XML to JSON with attributes and arrays See the tool page for its FAQ, which answers common questions about XML to JSON Converter (privacy, how it works, edge cases). ### Text to Binary Converter - URL: https://elci.dev/text-to-binary - What it is: Convert text to binary, hex, decimal or octal and back See the tool page for its FAQ, which answers common questions about Text to Binary Converter (privacy, how it works, edge cases). ### JWT Verifier - URL: https://elci.dev/jwt-verifier - What it is: Verify JWT signatures with a secret or public key See the tool page for its FAQ, which answers common questions about JWT Verifier (privacy, how it works, edge cases). ### SHA-256 Generator - URL: https://elci.dev/sha256-generator - What it is: Generate SHA-256 hashes of text or files See the tool page for its FAQ, which answers common questions about SHA-256 Generator (privacy, how it works, edge cases). ### MD5 Generator - URL: https://elci.dev/md5-generator - What it is: Generate MD5 hashes of text or files See the tool page for its FAQ, which answers common questions about MD5 Generator (privacy, how it works, edge cases). ### CSS Minifier - URL: https://elci.dev/css-minifier - What it is: Minify CSS and see the bytes saved See the tool page for its FAQ, which answers common questions about CSS Minifier (privacy, how it works, edge cases). ### JS Minifier - URL: https://elci.dev/js-minifier - What it is: Minify JavaScript and see the bytes saved See the tool page for its FAQ, which answers common questions about JS Minifier (privacy, how it works, edge cases). ## Agent tools Call these through the MCP server at https://elci.dev/mcp, with `await window.elciAgent.run(name, args)` on any elci.dev page, through WebMCP where the browser supports it, or read https://elci.dev/agents.json for the JSON Schemas. ### color_convert - Page: https://elci.dev/color-converter - Convert a hex color to RGB and HSL CSS strings. Accepts 3- or 6-digit hex, with or without "#". - Arguments: - `hex` (string, required): Hex color, e.g. "#4b9fe0" or "4b9fe0" or "#fff". - Returns: Object with hex (normalised, lowercase), rgb ("rgb(r, g, b)") and hsl ("hsl(h, s%, l%)") strings. Example: `color_convert({"hex":"#4b9fe0"})` ### css_gradient - Page: https://elci.dev/css-gradient-generator - Build a CSS linear or radial gradient declaration from color stops. - Arguments: - `type` ("linear" | "radial", default "linear"): Gradient type. - `angle` (number, default 90): Angle in degrees for linear gradients (ignored for radial). - `stops` (array, default [{"color":"#4B9FE0","position":0},{"color":"#B330E1","position":100}]): 2 to 8 color stops. Position is a percentage from 0 to 100; stops are sorted by position. - Returns: Object with value (the gradient function) and css (a ready "background: ...;" declaration). Example: `css_gradient({})` ### box_shadow - Page: https://elci.dev/box-shadow-generator - Build a CSS box-shadow declaration with offsets, blur, spread, color and opacity. - Arguments: - `offsetX` (number, default 0): Horizontal offset in px. - `offsetY` (number, default 4): Vertical offset in px. - `blur` (number, default 8): Blur radius in px. - `spread` (number, default 0): Spread radius in px. - `color` (string, default "#000000"): Shadow color as 6-digit hex. - `opacity` (number, default 35): Opacity in percent. - `inset` (boolean, default false): Draw an inner shadow. - Returns: Object with value (the shadow list) and css (a ready "box-shadow: ...;" declaration). Example: `box_shadow({})` ### cubic_bezier - Page: https://elci.dev/cubic-bezier-generator - Build a CSS cubic-bezier() timing function from a preset or four control values. - Arguments: - `preset` ("ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear"): Named preset; overrides x1..y2 when given. - `x1` (number, default 0.25): First control point x. Clamped to 0..1 (CSS requires it). - `y1` (number, default 0.1): First control point y (may overshoot 0..1). - `x2` (number, default 0.25): Second control point x. Clamped to 0..1. - `y2` (number, default 1): Second control point y (may overshoot 0..1). - Returns: Object with css ("cubic-bezier(x1, y1, x2, y2)") and the effective x1, y1, x2, y2. Example: `cubic_bezier({})` ### cidr_calculate - Page: https://elci.dev/cidr-calculator - Calculate an IPv4 subnet from CIDR notation: network, broadcast, netmask, wildcard, host range and host counts. - Arguments: - `cidr` (string, required): IPv4 CIDR block, e.g. "192.168.1.0/24". - Returns: Object with network, broadcast, netmask, wildcard, firstHost, lastHost, totalHosts, usableHosts and prefixLength. Example: `cidr_calculate({"cidr":"192.168.1.0/24"})` ### chmod_convert - Page: https://elci.dev/chmod-calculator - Convert a Unix octal file mode (e.g. 755) into symbolic form (rwxr-xr-x), the chmod command and a per-class permission breakdown. Supports setuid/setgid/sticky with a 4-digit mode. - Arguments: - `octal` (string, required): Octal mode of 3 or 4 digits, e.g. "644" or "4755". - Returns: Object with octal (normalised), symbolic, command, permissions (owner/group/others read/write/execute) and special (setuid/setgid/sticky). Example: `chmod_convert({"octal":"755"})` ### http_status_lookup - Page: https://elci.dev/http-status-codes - Look up HTTP status codes by number prefix ("40" finds 400-409), name or meaning, optionally limited to one class. - Arguments: - `query` (string, default ""): Code prefix, or text from the name or description. Empty returns all codes. - `statusClass` ("1xx" | "2xx" | "3xx" | "4xx" | "5xx"): Only this class of status. - Returns: Object with count and matches: [{ code, name, description }]. Example: `http_status_lookup({"query":"404"})` ### dns_lookup - Page: https://elci.dev/dns-lookup - Resolve a DNS record through Cloudflare DNS-over-HTTPS. Makes a network request to cloudflare-dns.com from the caller. - Arguments: - `domain` (string, required): Domain name, e.g. "example.com". - `recordType` ("A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SOA" | "CAA", default "A"): DNS record type. - Returns: Object with status (e.g. NOERROR, NXDOMAIN), answers and authority: [{ name, type, ttl, data }]. ### robots_txt_generate - Page: https://elci.dev/robots-txt-generator - Generate a robots.txt file with allow/disallow rules, optional AI crawler blocks, crawl delay and sitemap lines. - Arguments: - `defaultPolicy` ("allow" | "block", default "allow"): "allow" opens the site (except disallowed paths); "block" disallows everything for all crawlers. - `disallow` (array, default []): Paths to disallow for all crawlers (ignored when defaultPolicy is "block"). - `allow` (array, default []): Paths to explicitly allow. - `crawlDelay` (number): Crawl-delay in seconds (some crawlers ignore it; Google does). - `blockedBots` (array, default []): AI crawlers to block entirely. - `sitemaps` (array, default []): Absolute sitemap URLs. - Returns: Object with robotsTxt: the file content. Example: `robots_txt_generate({"disallow":["/admin/","/tmp/"],"blockedBots":["GPTBot"],"sitemaps":["https://example.com/sitemap.xml"]})` ### meta_tags_generate - Page: https://elci.dev/meta-tags-generator - Generate the meta tags for SEO, Open Graph and Twitter cards. Empty fields are left out. - Arguments: - `title` (string, default ""): Page title (aim for 60 characters or fewer). - `description` (string, default ""): Meta description (aim for 160 characters or fewer). - `canonicalUrl` (string, default ""): Canonical URL. - `robots` ("index, follow" | "noindex, follow" | "index, nofollow" | "noindex, nofollow", default "index, follow"): Robots directive. - `themeColor` (string, default ""): Theme color, e.g. "#0d0e10". - `ogType` ("website" | "article", default "website"): Open Graph type. - `ogImage` (string, default ""): Absolute image URL (1200x630 works best). - `ogSiteName` (string, default ""): Site name. - `twitterCard` ("summary" | "summary_large_image", default "summary_large_image"): Twitter/X card layout. - `twitterSite` (string, default ""): Twitter/X handle, e.g. "@example". - Returns: Object with html: the tags to paste into . Example: `meta_tags_generate({"title":"My page","description":"About it","canonicalUrl":"https://example.com/p"})` ### gitignore_generate - Page: https://elci.dev/gitignore-generator - Combine language, framework, editor and OS templates into one .gitignore, dropping duplicate lines. - Arguments: - `templates` (array, required): Templates to include, in order. - Returns: Object with gitignore: the combined file, one "### Name" section per template. Example: `gitignore_generate({"templates":["Node","macOS"]})` ### crontab_explain - Page: https://elci.dev/crontab-generator - Explain a 5-field cron expression in plain English (minute hour day-of-month month day-of-week). - Arguments: - `expression` (string, required): Cron expression, e.g. "*/15 * * * *" or "0 9 * * 1-5". - Returns: Object with the normalised expression and an English description of when it runs. Example: `crontab_explain({"expression":"*/15 * * * *"})` ### timestamp_convert - Page: https://elci.dev/timestamp-converter - Convert between Unix timestamps and dates. Give a timestamp (seconds or milliseconds) or a dateTime in a time zone; with neither, converts the current time. Always returns ISO 8601 UTC plus both Unix units. - Arguments: - `timestamp` (number): Unix timestamp. Interpreted per "unit". - `unit` ("seconds" | "milliseconds", default "seconds"): Unit of "timestamp". - `dateTime` (string): Local date and time in "timeZone", as "YYYY-MM-DDTHH:mm" or "YYYY-MM-DDTHH:mm:ss" (no zone suffix). - `timeZone` (string, default "UTC"): IANA time zone used for dateTime and for the formatted output. - Returns: Object with iso, unixSeconds, unixMilliseconds, utc, timeZone, formatted (in that zone) and relative ("in 2 days"). Example: `timestamp_convert({"timestamp":1700000000})` ### timezone_convert - Page: https://elci.dev/timezone-converter - Convert a date and time from one IANA time zone to another, accounting for daylight saving time. - Arguments: - `dateTime` (string, required): Local date and time in sourceZone, as "YYYY-MM-DDTHH:mm". - `sourceZone` (string, default "UTC"): IANA time zone of dateTime. - `targetZone` (string, default "UTC"): IANA time zone to convert to. - Returns: Object with utc (ISO), source and target: { timeZone, formatted }. Example: `timezone_convert({"dateTime":"2026-01-15T12:30","sourceZone":"America/New_York","targetZone":"Asia/Tokyo"})` ### json_format - Page: https://elci.dev/json-formatter - Format (2-space indent), minify or stringify JSON. Format and minify also expand JSON that is embedded as a string inside the document. Reports the parse error for invalid JSON. - Arguments: - `input` (string, required): JSON text. - `action` ("format" | "minify" | "stringify", default "format"): "format" pretty-prints, "minify" removes whitespace, "stringify" returns the JSON as an escaped string literal. - Returns: Object with output: the resulting text. Example: `json_format({"input":"{\"b\":1,\"a\":[1,2]}"})` ### json_diff - Page: https://elci.dev/json-diff - Compare two JSON documents by structure. Key order and whitespace do not count; array order does. - Arguments: - `original` (string, required): Original JSON. - `changed` (string, required): Changed JSON. - Returns: Object with identical (boolean), added and removed (line counts) and parts: [{ value, added?, removed? }] in document order. Example: `json_diff({"original":"{\"a\":1,\"b\":2}","changed":"{\"b\":2,\"a\":1}"})` ### jsonpath_query - Page: https://elci.dev/jsonpath-tester - Evaluate a JSONPath expression against a JSON document. Supports filters ($..book[?(@.price < 10)]) and recursive descent. - Arguments: - `json` (string, required): JSON document. - `path` (string, required): JSONPath expression, e.g. "$.store.book[*].title". - `resultType` ("value" | "path", default "value"): Return the matched values or the path of each match. - Returns: Object with matchCount and matches (always a list, empty when nothing matches). Example: `jsonpath_query({"json":"{\"store\":{\"book\":[{\"title\":\"A\",\"price\":5},{\"title\":\"B\",\"price\":15}]}}","path":"$..book[?(@.price < 10)].title"})` ### json_schema_validate - Page: https://elci.dev/json-schema-validator - Validate JSON data against a JSON Schema (draft 4, 7, 2019-09 or 2020-12; "auto" reads $schema and defaults to 2020-12). Lists every error with a JSON Pointer path. - Arguments: - `data` (string, required): The JSON document to validate. - `schema` (string, required): The JSON Schema, as JSON text. - `draft` ("auto" | "2020-12" | "2019-09" | "7" | "4", default "auto"): Schema draft. - Returns: Object with valid (boolean), draft (the draft used) and errors: [{ path (JSON Pointer, "" for the root), keyword, message }]. Example: `json_schema_validate({"data":"{\"name\":\"Ada\",\"age\":36}","schema":"{\"type\":\"object\",\"required\":[\"name\"],\"properties\":{\"age\":{\"type\":\"integer\",\"minimum\":0}}}"})` ### json_to_typescript - Page: https://elci.dev/json-to-typescript - Generate TypeScript interfaces from a JSON sample. - Arguments: - `input` (string, required): JSON sample. - `rootName` (string, default "Root"): Name of the root interface. - Returns: Object with typescript: the interface declarations. Example: `json_to_typescript({"input":"{\"id\":1,\"name\":\"x\",\"tags\":[\"a\"],\"owner\":null}"})` ### yaml_json_convert - Page: https://elci.dev/yaml-json-converter - Convert between YAML and JSON. - Arguments: - `input` (string, required): YAML or JSON text. - `direction` ("yaml-to-json" | "json-to-yaml", default "yaml-to-json"): Conversion direction. - Returns: Object with output: the converted text. Example: `yaml_json_convert({"input":"a: 1\nb:\n - x\n - y\n"})` ### csv_json_convert - Page: https://elci.dev/csv-json-converter - Convert between CSV (first row is the header) and JSON. - Arguments: - `input` (string, required): CSV or JSON text. - `direction` ("csv-to-json" | "json-to-csv", default "csv-to-json"): Conversion direction. - Returns: Object with output: the converted text. Example: `csv_json_convert({"input":"name,age\nAda,36\nLinus,55"})` ### json_to_csv - Page: https://elci.dev/json-to-csv - Convert a JSON array of objects (or one object) to CSV. Nested objects become dotted columns (user.name) when flatten is on; arrays stay in one cell as JSON. Columns are every key seen in any row. - Arguments: - `input` (string, required): JSON text: an array of objects, one object, or an array of values. - `delimiter` ("comma" | "semicolon" | "tab" | "pipe", default "comma"): Column separator. - `flatten` (boolean, default true): Turn nested objects into dotted columns instead of JSON text. - Returns: Object with csv (the CSV text, CRLF line endings), columns and rows (counts). Example: `json_to_csv({"input":"[{\"name\":\"Ada\",\"address\":{\"city\":\"London\"}},{\"name\":\"Linus\",\"tags\":[\"git\"]}]"})` ### xml_format - Page: https://elci.dev/xml-formatter - Format or minify XML and check that it is well-formed (single root, matching tags, no unterminated constructs). Does not validate against a schema. - Arguments: - `input` (string, required): XML text. - `action` ("format" | "minify", default "format"): "format" indents, "minify" removes whitespace between tags and comments. - `indent` ("2" | "4" | "tab", default "2"): Indentation for "format": 2 spaces, 4 spaces or a tab. - Returns: Object with output: the resulting XML. Example: `xml_format({"input":"text"})` ### xml_to_json - Page: https://elci.dev/xml-to-json - Convert XML to JSON. Attributes become "@name", text beside attributes or child elements becomes "#text", repeated elements become arrays, CDATA is text and comments are dropped. - Arguments: - `input` (string, required): XML text. - `coerce` (boolean, default false): Turn numbers and true/false into JSON numbers and booleans (values with leading zeros stay text). - Returns: Object with json: the converted value, keyed by the root element name. Example: `xml_to_json({"input":"DuneEmma"})` ### sql_format - Page: https://elci.dev/sql-formatter - Format SQL with upper-cased keywords for a chosen dialect. - Arguments: - `input` (string, required): SQL text. - `dialect` ("sql" | "mysql" | "postgresql" | "mariadb" | "sqlite" | "bigquery" | "snowflake" | "transactsql" | "plsql" | "redshift", default "sql"): SQL dialect. - Returns: Object with output: the formatted SQL. Example: `sql_format({"input":"select id,name from users where id=1 order by name"})` ### html_format - Page: https://elci.dev/html-formatter - Beautify or minify HTML. - Arguments: - `input` (string, required): HTML text. - `mode` ("beautify" | "minify", default "beautify"): "beautify" or "minify". - Returns: Object with output: the resulting HTML. Example: `html_format({"input":"

Hello

"})` ### css_format - Page: https://elci.dev/css-formatter - Beautify or minify CSS. - Arguments: - `input` (string, required): CSS text. - `mode` ("beautify" | "minify", default "beautify"): "beautify" or "minify". - Returns: Object with output: the resulting CSS. Example: `css_format({"input":"a{color:red;margin:0}b{padding:1px}"})` ### js_format - Page: https://elci.dev/js-formatter - Beautify or minify JavaScript. - Arguments: - `input` (string, required): JavaScript text. - `mode` ("beautify" | "minify", default "beautify"): "beautify" or "minify". - Returns: Object with output: the resulting JavaScript. Example: `js_format({"input":"function f(a,b){return a+b}"})` ### base64_encode - Page: https://elci.dev/base64-encoder - Encode text (UTF-8) as Base64, optionally in the URL-safe alphabet (- and _ instead of + and /, no padding). - Arguments: - `input` (string, required): Text to encode. - `uriSafe` (boolean, default false): Use the URL-safe alphabet. - Returns: Object with output: the Base64 text. Example: `base64_encode({"input":"hello"})` ### base64_decode - Page: https://elci.dev/base64-decoder - Decode Base64 text (standard or URL-safe alphabet) to a UTF-8 string. - Arguments: - `input` (string, required): Base64 text. - Returns: Object with output: the decoded text. Example: `base64_decode({"input":"aGVsbG8="})` ### url_encode - Page: https://elci.dev/url-encoder - Percent-encode text for use inside a URL (encodeURIComponent). - Arguments: - `input` (string, required): Text to encode. - Returns: Object with output: the encoded text. Example: `url_encode({"input":"a b&c=d/é"})` ### url_decode - Page: https://elci.dev/url-decoder - Decode percent-encoded text (decodeURIComponent). Malformed sequences are reported as an error. - Arguments: - `input` (string, required): Percent-encoded text. - Returns: Object with output: the decoded text. Example: `url_decode({"input":"a%20b%26c%3Dd%2F%C3%A9"})` ### html_entity_convert - Page: https://elci.dev/html-entity-converter - Encode text as HTML entities (& < > " ' by name, characters from U+00A0 up as numeric entities) or decode entities back to text. Decoding uses the browser HTML parser. - Arguments: - `input` (string, required): Text or entity-encoded text. - `direction` ("encode" | "decode", default "encode"): "encode" or "decode". - Returns: Object with output: the converted text. Example: `html_entity_convert({"input":"Tom & Jerry's"})` ### number_base_convert - Page: https://elci.dev/number-base-converter - Convert a non-negative integer between binary, octal, decimal and hexadecimal, exactly, for any length. - Arguments: - `value` (string, required): The number, using only digits valid for inputBase. - `inputBase` (2 | 8 | 10 | 16, default 10): Base of value. - Returns: Object with binary, octal, decimal and hex (uppercase) strings. Example: `number_base_convert({"value":"255"})` ### text_binary_convert - Page: https://elci.dev/text-to-binary - Convert text to its UTF-8 bytes written in binary, hex, decimal or octal, or decode such bytes back to text. Decoding accepts spaces, commas, 0x prefixes or one unseparated run. - Arguments: - `input` (string, required): Text to encode, or bytes to decode. - `direction` ("encode" | "decode", default "encode"): Encode text to bytes, or decode bytes to text. - `format` ("binary" | "hex" | "decimal" | "octal", default "binary"): How each byte is written. - `separator` ("space" | "none", default "space"): Between encoded bytes (decimal always uses a space). - Returns: Object with output: the encoded bytes or the decoded text. Example: `text_binary_convert({"input":"Hi"})` ### jwt_decode - Page: https://elci.dev/jwt-decoder - Decode a JWT: header, payload and signature, with iat/exp as ISO 8601 UTC and an "expired" flag. Does NOT verify the signature. - Arguments: - `token` (string, required): JWT (three dot-separated parts). - Returns: Object with header, payload, signature, issuedAt, expiresAt (ISO UTC), expired and signatureVerified (always false). Example: `jwt_decode({"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI0MiIsIm5hbWUiOiJBZGEiLCJpYXQiOjE3Njg0NzQ4MDAsImV4cCI6MTc2ODQ4MjAwMH0.c2lnbmF0dXJl"})` ### qr_code_svg - Page: https://elci.dev/qr-code-generator - Generate a QR code as an SVG string. - Arguments: - `text` (string, required): Text or URL to encode. - `errorLevel` ("L" | "M" | "Q" | "H", default "M"): Error correction level: L (7%), M (15%), Q (25%) or H (30%). - `size` (integer, default 256): Width and height in pixels. - `margin` (integer, default 2): Quiet-zone width in modules. - Returns: Object with svg: the SVG markup. ### case_convert - Page: https://elci.dev/case-converter - Convert text between naming and letter cases (camelCase, snake_case, kebab-case, Title Case, ...). Words are split on spaces, underscores, hyphens and case boundaries (XMLParser becomes XML Parser). - Arguments: - `input` (string, required): Text to convert. - `targetCase` ("camelCase" | "PascalCase" | "snake_case" | "kebab-case" | "Title Case" | "UPPERCASE" | "lowercase" | "CONSTANT_CASE", default "camelCase"): Target case. - Returns: Object with output: the converted text. Example: `case_convert({"input":"XMLParser is_great"})` ### slugify_text - Page: https://elci.dev/slugify - Turn a title into a URL slug: lowercase, accents removed, runs of other characters become single hyphens. - Arguments: - `input` (string, required): Title or phrase. - Returns: Object with slug. Example: `slugify_text({"input":" Crème Brûlée & Café: the Best Ever! "})` ### word_count - Page: https://elci.dev/word-counter - Count words, characters, sentences and paragraphs and estimate reading time at 200 words per minute. - Arguments: - `text` (string, required): Text to analyse. - Returns: Object with words, characters, charactersNoSpaces, sentences, paragraphs and readingTimeMinutes (rounded up). Example: `word_count({"text":"Hello world. How are you?\n\nSecond paragraph."})` ### regex_test - Page: https://elci.dev/regex-tester - Test a JavaScript regular expression against a string and list every match with its index and capture groups. - Arguments: - `pattern` (string, required): Regular expression source, without slashes. - `testString` (string, required): Text to search. - `flags` (string, default "g"): Flags: any of d g i m s u y, each at most once. With "g" all matches are returned, otherwise the first. - Returns: Object with matchCount and matches: [{ match, index, groups (null for unmatched), namedGroups? }]. Example: `regex_test({"pattern":"(\\d+)-(\\d+)","testString":"10-20 and 30-40"})` ### text_diff - Page: https://elci.dev/diff-checker - Compare two texts line by line. - Arguments: - `original` (string, required): Original text. - `changed` (string, required): Changed text. - Returns: Object with identical, added and removed (line counts) and parts: [{ value, added?, removed? }] in order. Example: `text_diff({"original":"a\nb\nc\n","changed":"a\nB\nc\n"})` ### markdown_to_html - Page: https://elci.dev/markdown-preview - Render Markdown to sanitised HTML (marked + DOMPurify). - Arguments: - `input` (string, required): Markdown text. - Returns: Object with html: the sanitised HTML. ### lorem_ipsum - Page: https://elci.dev/lorem-ipsum-generator - Generate lorem ipsum placeholder text. The first output always starts with the classic "Lorem ipsum dolor sit amet" opening; the rest is random. - Arguments: - `unit` ("paragraphs" | "sentences" | "words", default "paragraphs"): What to count. - `count` (integer, default 3): How many units (1 to 50). - Returns: Object with text. Example: `lorem_ipsum({"unit":"words","count":3})` ### hash_text - Page: https://elci.dev/hash-generator - Compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of a UTF-8 string, as lowercase hex. MD5 and SHA-1 are not safe for security purposes. - Arguments: - `input` (string, required): Text to hash. - Returns: Object with md5, sha1, sha256, sha384 and sha512 hex strings. Example: `hash_text({"input":"hello"})` ### bcrypt - Page: https://elci.dev/bcrypt-generator - Hash a password with bcrypt, or verify a password against a bcrypt hash. Higher cost is slower: each +1 doubles the time. - Arguments: - `mode` ("hash" | "verify", default "hash"): "hash" creates a hash, "verify" checks a password against a hash. - `password` (string, required): The password. - `cost` (integer, default 10): Cost factor (log2 rounds) for "hash". - `hash` (string): The bcrypt hash to check, for "verify". - Returns: For hash: { hash }. For verify: { match: boolean }. Example: `bcrypt({"mode":"verify","password":"correct horse","hash":"$2b$04$lMwnQXJkNnzDgJFpn4KiS.XE1v/ZBChaSrEO1Tj5QBKURel4tasEa"})` ### jwt_encode - Page: https://elci.dev/jwt-encoder - Create and sign a JWT with HMAC (HS256, HS384 or HS512). Add "iat"/"exp" yourself if you want them. - Arguments: - `payload` (object, required): Claims as a JSON object, e.g. {"sub": "42"}. - `secret` (string, required): HMAC secret. Never send a production secret to any tool you do not control. - `algorithm` ("HS256" | "HS384" | "HS512", default "HS256"): Signing algorithm. - Returns: Object with token: the signed JWT. Example: `jwt_encode({"payload":{"sub":"42"},"secret":"s3cret"})` ### jwt_verify - Page: https://elci.dev/jwt-verifier - Verify a JWT signature: HS256/384/512 with the shared secret, RS*, PS* or ES* with a public key (PEM "BEGIN PUBLIC KEY", JWK or JWKS). Also reports whether exp/nbf make it expired or not yet valid. A public key is never accepted as an HMAC secret. - Arguments: - `token` (string, required): The JWT. - `key` (string, required): HMAC secret, or the public key as PEM, JWK or JWKS JSON. Never send a production secret to any tool you do not control. - `secretEncoding` ("utf8" | "base64", default "utf8"): How an HMAC secret is written. - Returns: Object with valid (signature check), algorithm, header, payload, expired and notYetValid (booleans, absent without exp/nbf), and expiresAt / issuedAt / notBefore as ISO dates. Example: `jwt_verify({"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI0MiJ9.tI1z8XNSbBhPKPHuXk8bh52K5u8ApiSn9F4rxMY8u6A","key":"s3cret"})` ### password_generate - Page: https://elci.dev/password-generator - Generate a random password with a cryptographically secure generator. Characters are drawn uniformly from the selected sets; each set is not guaranteed to appear. - Arguments: - `length` (integer, default 16): Password length. - `uppercase` (boolean, default true): Include A-Z. - `lowercase` (boolean, default true): Include a-z. - `numbers` (boolean, default true): Include 0-9. - `symbols` (boolean, default false): Include symbols !@#$%^&*()_+-=[]{}|;:,.<>? - Returns: Object with password. ### uuid_generate - Page: https://elci.dev/uuid - Generate UUIDs: v1 (time + node), v4 (random), v6 (reordered v1) or v7 (time-ordered, good for database keys). - Arguments: - `version` (1 | 4 | 6 | 7, default 4): UUID version. - `count` (integer, default 1): How many UUIDs (1 to 512). - Returns: Object with uuids: a list of UUID strings. ### ulid_generate - Page: https://elci.dev/ulid-generator - Generate ULIDs: 26-character, lexicographically sortable identifiers with a millisecond timestamp. - Arguments: - `count` (integer, default 1): How many ULIDs (1 to 512). - `monotonic` (boolean, default false): Guarantee increasing order within the batch when timestamps tie. - `time` (integer): Timestamp in milliseconds since the Unix epoch (default: now). - Returns: Object with ulids: a list of ULID strings. ### random_numbers - Page: https://elci.dev/random-number-generator - Generate random integers in an inclusive range with a cryptographically secure generator, optionally all distinct. - Arguments: - `min` (integer, default 1): Smallest value. - `max` (integer, default 100): Largest value. - `count` (integer, default 5): How many numbers (1 to 10000). - `unique` (boolean, default false): No repeated values. - Returns: Object with numbers: a list of integers. ### self_signed_certificate - Page: https://elci.dev/self-signed-certificate - Generate a self-signed X.509 certificate and RSA key pair (PEM). For local development only. Slow for large key sizes: 4096 bits can take many seconds. Always signed with SHA-256. - Arguments: - `commonName` (string, default "localhost"): Common name; also used as the DNS subject alternative name. - `countryName` (string, default "US"): Two-letter country code. - `localityName` (string, default ""): City. - `stateOrProvinceName` (string, default ""): State or province. - `organizationName` (string, default ""): Organization. - `organizationalUnitName` (string, default ""): Organizational unit. - `emailAddress` (string, default ""): Contact email. - `keySize` (1024 | 2048 | 3072 | 4096, default 2048): RSA key size in bits. - `days` (integer, default 365): Validity in days. - `algorithm` ("sha256", default "sha256"): Signature hash. Only sha256 is honoured by the underlying library. - Returns: Object with privateKey, publicKey and certificate (PEM strings) and fingerprint. ## Guides ### How to Decode a JWT URL: https://elci.dev/guides/how-to-decode-a-jwt A JSON Web Token (JWT) looks like opaque random text, but most of it is just Base64URL-encoded JSON that anyone can read. This guide walks through what a JWT contains, how to decode it by hand or with a tool, and the crucial difference between decoding and verifying. #### What a JWT looks like A JWT is three short strings joined by periods: header.payload.signature. The header describes how the token was signed (for example HS256), the payload holds the claims such as sub, name, iat and exp, and the signature is what lets a server trust the first two parts. Each of the first two parts is JSON that has been Base64URL-encoded, not encrypted. That is why you can decode a JWT without any key. #### Decoding the header and payload Split the token on the periods, take the first two segments, and Base64URL-decode each one. The result is readable JSON. The elci.dev JWT decoder does this automatically and pretty-prints the two objects side by side. If the decoded payload shows values like iat (issued-at) and exp (expires-at), remember they are Unix timestamps. You can paste them into a timestamp converter to see the actual dates. #### Decoding is not the same as verifying Decoding only reads the token. Verifying means checking the signature against the issuer's secret or public key to confirm nobody tampered with it. A decoder intentionally does not verify, because it has no key. A token with a valid-looking payload can still be forged if its signature is not checked, so never trust the contents of a JWT just because they decoded successfully. #### What to watch out for JWTs frequently carry sensitive claims, and the payload is readable by anyone who gets hold of the token. Avoid pasting production tokens into third-party tools as a general practice, and never put secrets like passwords or API keys in a JWT payload. ### How to Format and Validate JSON URL: https://elci.dev/guides/how-to-format-json Minified JSON is hard to read, and a single stray comma can break a whole payload. This guide explains how to check whether JSON is valid, make it readable, and fix the errors that show up most often. #### What makes JSON valid JSON must use double quotes for strings and keys, cannot contain trailing commas, and must wrap objects in curly braces and arrays in square brackets. Comments are not allowed. These rules are stricter than JavaScript object literals, which is why code snippets pasted into a JSON validator so often fail. If a validator reports an error, it usually points at the line and column of the first unexpected character, so start there and work outward. #### Formatting vs. minifying Formatting (also called pretty-printing) adds indentation and line breaks so the structure is visible at a glance. Minifying strips all unnecessary whitespace to produce the smallest payload for sending over a network. Both represent exactly the same data. A common workflow is to minify JSON before storing or transmitting it, then format it again whenever you need to read it. #### Common syntax mistakes Trailing commas, single-quoted keys or strings, and unquoted keys are the three most frequent errors. Another classic is forgetting a closing bracket after a deeply nested object. When an error message mentions an unexpected token, check the characters immediately before it. #### Going further Once your JSON is valid, you can convert it to other formats. If you need TypeScript types from a JSON sample, paste it into the JSON to TypeScript tool, or convert between JSON and YAML or CSV with the relevant converters. ### How to Convert a Unix Timestamp URL: https://elci.dev/guides/how-to-convert-a-unix-timestamp Unix timestamps appear everywhere in logs, APIs and databases, but they are meaningless until you know whether they are in seconds or milliseconds and how time zones apply. This guide clears that up. #### What a Unix timestamp is A Unix timestamp is the number of seconds (or sometimes milliseconds) elapsed since 1970-01-01 00:00:00 UTC, known as the epoch. Because it is a simple number with no time zone, it is unambiguous once you know the unit. #### Seconds vs. milliseconds This is the single most common source of confusion. Traditional Unix time is in seconds, but many JavaScript APIs such as Date.now() return milliseconds. A seconds value fed into a milliseconds converter produces a date thousands of years off, typically a clue you mixed up the two. A quick test: a timestamp around 1,700,000,000 is seconds; one around 1,700,000,000,000 is milliseconds. #### How time zones work The timestamp itself has no time zone: it is always an offset from UTC. When you convert it, the same instant maps to a different local time depending on the viewer. A good converter shows both the UTC time and the local time in your browser. #### The year 2038 problem Systems that store Unix time as a signed 32-bit integer will overflow on 2038-01-19. Modern browsers use 64-bit-safe numbers and are unaffected, but many older embedded and C-based systems are not. ### How to Base64 Encode Text URL: https://elci.dev/guides/how-to-encode-base64 Base64 turns binary or text data into a string of printable ASCII characters so it can travel through systems that only handle text. This guide explains how it works and when to use each variant. #### What Base64 does Base64 re-encodes bytes as printable ASCII text by grouping them and mapping each group to a character from a 64-character alphabet (A-Z, a-z, 0-9, + and /). The result can be safely embedded in JSON, URLs, email and configuration files. #### Encoding is not encryption Base64 provides no confidentiality whatsoever: anyone can reverse it instantly with no key. It is only a representation, not a security measure. If you need to protect data, use real encryption, and never rely on Base64 to hide a secret. #### Standard vs. URL-safe Base64 Standard Base64 uses + and / and pads with =, characters that are meaningful or invalid in URLs. The URL-safe variant swaps them for - and _ and often omits padding, so the output can go directly into a URL or filename without further escaping. #### Size and padding Base64 grows the data by about 33%, because every 3 input bytes become 4 output characters. Padding with = ensures the output length is a multiple of 4, which is why decoders reject truncated or unpadded input by default. ### How to Calculate IP Subnets from CIDR Notation URL: https://elci.dev/guides/how-to-calculate-ip-subnets-from-cidr CIDR notation like 10.0.0.0/24 is a compact way to describe a block of IP addresses, but turning it into network, broadcast and usable-host counts trips people up. This guide breaks down the math. #### What CIDR notation means The /N suffix is the number of leading bits that identify the network. The remaining bits identify hosts within it. A /24 has 24 network bits and 8 host bits, giving 2^8 = 256 total addresses. #### Network, broadcast and usable hosts The first address in the block (all host bits zero) is the network address and identifies the subnet. The last address (all host bits one) is the broadcast address. Everything in between is usable by hosts, so a /24 yields 254 usable addresses, not 256. #### Counting hosts from the prefix For a /N with 32 - N host bits, the total address count is 2^(32 - N), and the usable count is that minus 2 for the network and broadcast addresses. A /27 therefore has 2^5 = 32 addresses and 30 usable hosts. #### Special cases: /31 and /32 A /32 describes a single host with no network or broadcast address. A /31 (RFC 3021) is a special case for point-to-point links where both addresses in the two-address block are usable as hosts. ### How to Test a Regular Expression URL: https://elci.dev/guides/how-to-test-a-regular-expression Regular expressions are powerful but notoriously fiddly. A tiny mistake can silently match nothing or match far too much. This guide covers the essentials for testing and debugging them. #### How a regex engine matches A pattern is matched left to right against the text, and many characters (like ., (, [ and *) are metacharacters that mean something other than the literal character. To match a literal metacharacter you must escape it with a backslash. #### Flags change behavior The g (global) flag makes a pattern find every match rather than stopping at the first, i (ignore case) makes it case-insensitive, and m (multiline) changes how ^ and $ behave. A missing flag is a very common reason a pattern appears to match nothing or only once. #### Capture groups Parentheses capture the text they match into numbered groups, and named groups use the syntax (?...). Seeing each group listed separately is the fastest way to confirm exactly which part of the match each set of parentheses caught. #### Debugging a pattern If a pattern matches nothing, check for a missing flag, an unescaped metacharacter, or an assumption about newlines. If it matches too much, the culprit is usually a greedy quantifier such as * or + that should be made lazy with *? or +?. ### How to Check if Your Browser Supports On-Device AI URL: https://elci.dev/guides/how-to-test-browser-ai-support Chrome ships a growing set of on-device AI APIs (Prompt, Summarizer, Translator, Language Detector, Writer and Rewriter) that run a local model instead of calling a server. Most of them are still gated behind an origin trial or a Chrome flag, so knowing what each availability state actually means, and what happens before you trigger a multi-gigabyte download, saves you from guessing. #### Why availability differs from browser to browser These APIs ship progressively: some are stable in recent Chrome desktop builds, others require enabling a flag at chrome://flags or joining an origin trial for a specific site, and none of them currently work in Chrome on mobile. Even on a qualifying Chrome version, the underlying model (Gemini Nano) has its own OS and hardware requirements, such as enough free disk space and a supported platform (Windows, macOS or Linux), so the same Chrome version can report different availability on different machines. #### The states an availability check can return Calling an API's availability() method resolves to one of a few states: unavailable means the browser supports the API but your device doesn't currently qualify for it; downloadable means everything checks out but the model itself hasn't been pulled to your device yet; downloading means a pull is already in progress; and available means the model is ready to use right now. A missing API entirely (no global for it in the browser at all) is a separate case from all of those: it means this Chrome build doesn't expose that API, whether because it's too old, the flag isn't enabled, or the API hasn't shipped there yet. #### What actually happens when you download a model A "downloadable" status doesn't mean anything has downloaded yet. That only happens when you call the API's create() method, which is also how you get the session or instance you actually use. Depending on the API and model, that download can range from a couple hundred MB to a few GB, and only needs to happen once per device since Chrome caches it for every site that uses the API afterward. Because that's a real, potentially large download, a page built around these APIs should make it an explicit step a visitor opts into, never something that fires automatically just because a page loaded or a tab was opened. #### Trying it yourself The Browser AI Tester on this site runs every one of these checks live in your browser and lets you try each API (including its own explicit "Download model" step, separate from running it) without sending anything you type to a server. ### How to Compare Two JSON Files URL: https://elci.dev/guides/how-to-compare-json-files Comparing two JSON files with a text diff often lights up the whole file, because a different indent or key order changes every line. A structural comparison shows only what actually changed. #### Why a text diff is noisy for JSON A line-based diff treats JSON as plain text. If one file is minified and the other is pretty-printed, or if a serializer writes keys in a different order, nearly every line is reported as changed even though the data is identical. The same happens when two systems indent with different widths. None of these differences matter to a program that reads the JSON, so they should not matter in the comparison either. #### Compare the data, not the text A JSON diff parses both documents first and compares the resulting values. Object keys are sorted before comparing, so reordering keys is not a change, and whitespace disappears because it never reaches the parsed data. Only real differences remain: a key that was added or removed, a value that changed, or an array item that was inserted, removed or edited. #### Arrays are ordered Unlike object keys, array items have a position. If an item moves from index 0 to index 2, the diff reports it as a change, because the array is a different list. If your arrays are really sets, sort them by a stable key before comparing. #### Fixing invalid input Both sides must be valid JSON before they can be compared. Trailing commas, single quotes and comments are the usual culprits. If the comparison reports which side is invalid, format that side first to find the exact line and column of the error. ### How to Query JSON with JSONPath URL: https://elci.dev/guides/how-to-query-json-with-jsonpath JSONPath lets you pull values out of a JSON document with a short expression, in the same way XPath does for XML. This guide covers the syntax you need for most real queries. #### The basics Every expression starts with $, the root of the document. From there, .name or ['name'] selects a field and [0] selects an array item by position. So $.store.book[0].title walks from the root to the title of the first book. Use the bracket form for keys that contain spaces or dots, such as $['first name']. #### Wildcards and recursive descent [*] or .* matches every child at one level, so $.store.book[*].title returns the title of every book. The double dot searches at any depth: $..title returns every title anywhere in the document, whatever the nesting. #### Slices and filters Array slices work like in Python: [0:2] returns the first two items and [-1:] the last one. Filter expressions select items by a condition, where @ stands for the current item, for example $..book[?(@.price < 10)] returns the books cheaper than 10. Filters can combine conditions with && and ||, and check that a field exists with [?(@.isbn)]. #### Reading the result A JSONPath query always returns a list of matches, even when there is only one, and an empty list when nothing matches. Implementations differ in the less common features, so test the expression against your real data before you rely on it in code. ### What Do HTTP Status Codes Mean? URL: https://elci.dev/guides/what-do-http-status-codes-mean Every HTTP response starts with a three-digit status code. The first digit tells you the class of result, and a handful of codes cover almost everything you will see while building or debugging an API. #### The five classes 1xx codes are informational, for example 101 when a connection switches to WebSocket. 2xx means success. 3xx means the client must look elsewhere, usually a redirect. 4xx means the request was wrong in some way, and 5xx means the server failed on a valid request. Clients and monitoring tools often react to the class alone, so picking the right class matters more than picking the perfect code. #### Success codes worth knowing 200 OK is the default. 201 Created is for a POST that made a new resource, ideally with a Location header. 204 No Content means success with no body, common for DELETE. 202 Accepted means the work was queued and has not finished. #### Pairs people confuse 401 means the request is not authenticated, so supplying credentials can fix it. 403 means the server knows who you are and still says no. For redirects, 301 and 308 are permanent and pass search ranking to the new URL, while 302 and 307 are temporary. 307 and 308 also keep the request method, which 301 and 302 do not guarantee. Among server errors, 500 is a generic failure, 502 means a gateway got a bad answer from upstream, 503 means the service is overloaded or down for maintenance, and 504 means upstream took too long. #### Choosing a code for your own API Use 400 for malformed requests and 422 for well-formed requests that fail validation. Use 404 when the resource does not exist, 409 for conflicts with current state and 429 when you rate limit, with a Retry-After header if you can. Return real 5xx codes for real server faults so alerts and retries behave correctly. ### How to Use chmod and Unix File Permissions URL: https://elci.dev/guides/how-to-use-chmod-permissions Unix file permissions decide who can read, write and run a file. The chmod command changes them, and the numbers it takes look cryptic until you see that each digit is just a sum of three values. #### Three classes, three permissions Every file has permissions for three classes: the owner, the group and everyone else (others). Each class can have read (r), write (w) and execute (x). ls -l shows them as nine characters, such as rwxr-xr-x. For a directory, read lets you list its contents, write lets you create and delete entries, and execute lets you enter it. #### How the octal digits work Read is worth 4, write 2 and execute 1. Add the values you want for each class and write the three sums in a row: rwx is 7, r-x is 5, rw- is 6 and r-- is 4. So 755 means the owner has rwx while the group and others have r-x, and 644 means the owner can read and write while everyone else can only read. #### Sensible defaults Use 644 for regular files and 755 for directories and scripts. Use 600 for private files such as SSH keys, which OpenSSH refuses to use if others can read them, and 700 for private directories. Avoid 777: it lets any user modify the file. You can also change one bit at a time with symbolic mode, for example chmod u+x script.sh to make a script executable for its owner. #### Special bits A fourth leading digit adds the special bits. Setuid (4) and setgid (2) run an executable with the privileges of its owner or group, and setgid on a directory makes new files inherit its group. The sticky bit (1) on a directory lets only a file's owner delete it, which is why /tmp is mode 1777. ### How to Write a robots.txt File URL: https://elci.dev/guides/how-to-write-a-robots-txt-file A robots.txt file tells crawlers which parts of your site they may request. It is short and easy to get wrong in ways that quietly hurt your search traffic, so it pays to know exactly what each line does. #### Where it goes and how it is read The file must be served as plain text at the root of the host, such as https://example.com/robots.txt. Each subdomain and each protocol needs its own file. Crawlers fetch it before they crawl and apply the group that best matches their name. #### Groups and rules A group starts with one or more User-agent lines, followed by Allow and Disallow rules for that crawler. User-agent: * applies to every crawler without a more specific group. Disallow: with an empty value allows everything, while Disallow: / blocks the whole site. Paths are prefixes, so Disallow: /private blocks /private, /private/ and /private-notes. Major crawlers also support * as a wildcard and $ to anchor the end of a URL, and when rules conflict the most specific one wins. #### Sitemaps and crawl delay Add one Sitemap: line with an absolute URL for each sitemap. It is independent of any group. Crawl-delay is honoured by some crawlers but ignored by Google, so do not rely on it to control load. #### What robots.txt cannot do It is a request, not access control: compliant crawlers follow it, and anyone can still open a blocked URL. It also does not remove pages from search results. A blocked URL can still be indexed from external links, and because the crawler cannot fetch the page it cannot see a noindex tag on it. To keep a page out of results, allow crawling and use a noindex meta tag or header instead. ### How to Write Meta Tags for SEO and Link Previews URL: https://elci.dev/guides/how-to-write-meta-tags-for-seo A handful of tags in the head of a page decide how it appears in search results and in the preview card when someone shares the link. Most pages only need a short, correct set. #### Title and description The title is the clickable headline in search results. Keep it under about 60 characters, put the main topic first and make each page's title unique. The meta description does not affect ranking directly, but it is often shown as the snippet, so write about 150 to 160 characters that describe the page honestly. Search engines may rewrite either one when they think another text fits the query better. #### Canonical and robots A canonical link tells search engines which URL is the preferred version when the same content is reachable at several addresses, for example with tracking parameters. The robots meta tag controls indexing: noindex keeps the page out of results and nofollow asks crawlers not to follow its links. Index and follow are the defaults, so you only need the tag to change them. #### Open Graph and Twitter cards Open Graph tags (og:title, og:description, og:image, og:url, og:type) control the card shown when a link is shared on most social platforms and chat apps. Twitter/X reads them too, but twitter:card chooses the layout, summary_large_image for a big picture or summary for a small one. Use an absolute HTTPS image URL around 1200 by 630 pixels, because some platforms cache the first image they see. #### Check the result After you publish, preview how the page looks when shared and make sure the canonical URL matches the address you want indexed. Duplicate or missing titles and descriptions are the most common issues found in SEO audits. ### How to Format and Check XML URL: https://elci.dev/guides/how-to-format-xml XML that comes out of an API or a config generator is often a single unreadable line. Formatting makes the structure visible, and checking that it is well formed catches the errors that stop parsers. #### What well-formed means Well-formed XML has exactly one root element, every opening tag has a matching closing tag in the right order, attribute values are quoted, and tag names are case sensitive. A parser stops at the first violation, so one mistake makes the whole document unusable. Well-formed is not the same as valid. Validity means the document also follows a schema (XSD or DTD), which needs a validator that knows the schema. #### Pretty-printing and minifying Pretty-printing puts each element on its own line and indents by depth, which is what you want for reading and for diffs in version control. Minifying removes the whitespace between tags to save bytes. Both keep the data the same, but be careful with mixed content, where whitespace inside text can matter. #### Common mistakes Unclosed or mismatched tags are the most frequent error, usually after hand editing. Next come unescaped special characters: write & for an ampersand and < for a less-than sign in text, or wrap raw text in a CDATA section. Whitespace before the XML declaration also breaks strict parsers. #### XML and other formats XML is still common in configuration files, feeds, SOAP services and office documents. If you receive XML but your code works with JSON, convert it with a library rather than by hand, and format the result with a JSON formatter to check it. ## Compare ### UUID vs ULID URL: https://elci.dev/compare/uuid-vs-ulid UUIDs and ULIDs both generate globally unique identifiers, but they differ in one key way: ULIDs embed a sortable timestamp, while most UUIDs are effectively random. That single difference has real consequences for database performance. **UUID Generator** - Universally supported by databases, libraries and APIs with no extra dependencies. - UUID v4 is fully random, so rows are scattered across a database index, hurting write performance. - Not sortable by creation time unless you use the newer v7 variant. **ULID Generator** - Encodes the creation timestamp in the first 48 bits, so IDs sort lexicographically in creation order. - Sortable IDs are friendly to B-tree indexes, avoiding random-insert slowdowns. - Uses Base32 (26 chars), slightly longer than a UUID's standard 36-character text form but shorter than a UUID's raw 16 bytes. Verdict: Choose UUID v4 for maximum compatibility, and ULID (or UUID v7) when you want time-ordered IDs that keep a database index healthy. ### JSON vs YAML URL: https://elci.dev/compare/json-vs-yaml JSON and YAML both represent structured data, but they trade readability and features for strictness and ubiquity. Choosing between them usually comes down to whether a human or a machine is the primary consumer. **JSON Formatter** - Strict, minimal syntax with no comments, which makes it unambiguous and easy to parse everywhere. - The native format of web APIs and JavaScript, with built-in browser support. - No anchors, aliases or multi-line strings, keeping the data model simple. **YAML ↔ JSON Converter** - Human-friendly with comments, indentation-based nesting, anchors and multi-line strings. - A superset of JSON's data model, so any JSON is also valid YAML. - Indentation-sensitive, so mixed tabs and spaces are the most common cause of parse errors. Verdict: Use JSON for APIs and machine-to-machine data, and YAML for human-edited configuration files where comments and readability matter. ### Base64 vs URL Encoding URL: https://elci.dev/compare/base64-vs-url-encoding Base64 and URL encoding are both ways to make data safe for transmission, but they solve different problems. Mixing them up produces broken URLs or bloated data. **Base64 Encoder** - Represents arbitrary binary data as printable ASCII, growing it by about 33%. - Used to embed binary data in JSON, URLs and email, not to encode URLs themselves. - Provides no confidentiality: it is a representation, not encryption. **URL Encoder** - Escapes reserved characters in a URL so they are interpreted literally, not as syntax. - encodeURIComponent-style percent-encoding is meant for a single query parameter value. - A space becomes %20, and non-ASCII characters are UTF-8 encoded then percent-encoded. Verdict: Use URL encoding to make a URL or query parameter safe, and Base64 when you need to embed binary data as text, including Base64 inside a URL-safe wrapper when needed. ### JWT Decoding vs Encoding URL: https://elci.dev/compare/jwt-decoding-vs-jwt-encoding Decoding and encoding a JWT are opposite operations, and confusing them is easy because both deal with the same three-part token format. **JWT Decoder** - Reads the header and payload of an existing token by Base64URL-decoding them. - Requires no secret or key, because the first two parts are only encoded, not encrypted. - Does not verify the signature, so it cannot confirm the token was not tampered with. **JWT Encoder** - Creates and signs a new token with an HMAC algorithm such as HS256, HS384 or HS512. - Requires a secret key, which is used to compute the signature and stays in the browser. - Produces a token you can then decode or hand to a server for later verification. Verdict: Use the decoder to inspect a token you received, and the encoder to mint a token for testing or for a client that expects an HMAC-signed JWT. ### CSV vs JSON URL: https://elci.dev/compare/csv-vs-json CSV and JSON are both common for exchanging data, but CSV is tabular and spreadsheet-friendly while JSON is nested and universal on the web. **CSV ↔ JSON Converter** - A flat, tabular format that spreadsheets and data tools import natively. - Compact for large homogeneous datasets with a fixed column layout. - No standard for nesting, data types or quoting beyond basic conventions. **JSON Formatter** - Nested, self-describing structure that maps directly to programming language objects. - The default for web APIs and JavaScript, with native support in browsers. - More verbose than CSV for flat data, and requires a schema to be useful for tabular tooling. Verdict: Use CSV for spreadsheets and flat tabular data, and JSON for nested, API-oriented data. Converting between them is lossless only when the data is flat. ### Markdown vs HTML URL: https://elci.dev/compare/markdown-vs-html Markdown and HTML both describe document structure, but Markdown optimizes for writing speed and readability while HTML gives you full control over markup. **Markdown Preview** - Plain-text syntax that is quick to write and easy to read in its source form. - Renders to HTML, with extensions like tables and fenced code blocks in GitHub-flavored variants. - Limited to a subset of document structure unless you fall back to raw HTML. **HTML Formatter & Minifier** - Full, precise control over elements, attributes and semantics. - The exact format browsers consume, so there is no conversion layer to go wrong. - Verbose and error-prone to write by hand for long-form content. Verdict: Write in Markdown for prose and documentation, and use HTML when you need precise markup control. Markdown is rendered to HTML anyway, so the two are complementary. ### Bcrypt vs SHA-256 URL: https://elci.dev/compare/bcrypt-vs-sha256 Both bcrypt and SHA-256 are hash functions, but only one is designed for storing passwords. Using the wrong one leaves credentials vulnerable to brute force. **Bcrypt Generator & Checker** - Deliberately slow, with a configurable cost factor that scales the hashing work. - Embeds a random salt in every hash, so identical passwords hash differently. - Designed specifically for password storage and resistant to fast GPU-based attacks. **Hash Generator** - Extremely fast by design, which makes it great for integrity checks but terrible for passwords. - A fast hash means an attacker can try billions of guesses per second. - No built-in salt or cost factor; the same input always produces the same hash. Verdict: Use bcrypt (or Argon2) for passwords because its slowness and salting resist brute force. Use SHA-256 for integrity, signatures and general-purpose hashing. ### Slugify vs Case Converter URL: https://elci.dev/compare/slugify-vs-case-converter Slugify and case conversion both rewrite text, but slugify produces URL-safe identifiers while case conversion reshapes the casing of words. **Slugify** - Converts text into a URL-safe slug of lowercase letters, digits and hyphens. - Strips punctuation and transliterates accented characters to ASCII (é becomes e). - Used for URLs, filenames and identifiers where spaces and special characters are invalid. **Case Converter** - Converts between casing conventions such as camelCase, snake_case and kebab-case. - Preserves word boundaries and content, only changing capitalization and separators. - Used to match a language or framework's naming convention, not to sanitize text. Verdict: Use slugify to make text safe for a URL or filename, and a case converter to rename identifiers to match a coding convention. ### Epoch Timestamp vs Time Zone Converter URL: https://elci.dev/compare/epoch-vs-timezone These two converters sound similar but answer different questions: one turns a raw timestamp into a date, the other moves a date between time zones. **Timestamp Converter** - Converts a Unix timestamp (seconds or milliseconds since the epoch) to and from a human-readable date. - Shows both UTC and local time, since a timestamp itself has no time zone. - Use it when you have a number like 1710000000 and need a date. **Time Zone Converter** - Converts an existing date and time from one time zone to another. - Handles daylight saving time automatically for the specific date you enter. - Use it when you have a date in one city and need the corresponding time in another. Verdict: Reach for the timestamp converter when you start with an epoch number, and the time zone converter when you start with a date and need to move it across time zones. ### CSS Gradient vs Box Shadow URL: https://elci.dev/compare/css-gradient-vs-box-shadow Gradients and box shadows are both pure-CSS visual effects, but one fills an element with color and the other adds depth around it. **CSS Gradient Generator** - Fills a background with a smooth blend between two or more colors. - Linear gradients blend along a line at an angle; radial gradients blend outward from a center. - The output is a CSS gradient function used in background or background-image. **Box Shadow Generator** - Adds a drop shadow around an element's border, with offset, blur and spread. - Can draw the shadow inside the border with inset for a pressed look. - The output is a box-shadow value for one or more shadow layers. Verdict: Use a gradient for colored backgrounds and a box shadow for elevation and depth. They combine well, so a card often has both a gradient background and a shadow. ### Base64 Encoder vs Decoder URL: https://elci.dev/compare/base64-encoder-vs-base64-decoder Encoding and decoding Base64 are mirror operations. The direction you need depends on whether your input is already Base64 text or plain data. **Base64 Encoder** - Turns plain text or data into Base64-encoded ASCII. - Use it when you need to embed data in JSON, URLs or text-only systems. - Offers a URL-safe variant that swaps + and / for - and _. **Base64 Decoder** - Turns Base64 text back into the original plain text or bytes. - Use it when you have encoded text (ending in = padding, or with only Base64 characters) and need the original. - Accepts both standard and URL-safe alphabets. Verdict: If your input is normal text and you need the gibberish-looking encoded form, encode it. If it is already Base64 text and you need to read it, decode it. ### URL Encoder vs Decoder URL: https://elci.dev/compare/url-encoder-vs-url-decoder URL encoding and decoding are mirror operations for percent-encoding. The direction depends on whether your input is a raw string or an already-encoded URL. **URL Encoder** - Percent-encodes reserved and non-ASCII characters so a value is safe inside a URL. - Use it when building a query string from user input that may contain spaces, & or #. - Spaces become %20, and Unicode characters are UTF-8 encoded first. **URL Decoder** - Decodes percent-encoded text back to the original characters. - Use it when you have a URL full of %20 and %3D sequences and need the readable form. - Decodes standard percent-encoding only, leaving + as a literal plus sign. Verdict: If you need to make a value safe for a URL, encode it. If you have an already-encoded URL and need to read it, decode it. ### JSON Diff vs Text Diff URL: https://elci.dev/compare/json-diff-vs-text-diff Both tools show what changed between two inputs, but they compare different things. A text diff compares lines of characters, while a JSON diff compares the data those characters describe. **JSON Diff** - Parses both sides first, so indentation and whitespace never show up as changes. - Sorts object keys before comparing, so reordering keys is not reported. - Reports which side is invalid JSON instead of comparing broken text. **Diff Checker** - Works on any text: code, config files, logs, prose and invalid JSON. - Shows exact line changes, including whitespace and key order. - Needs no parsing, so it never rejects the input. Verdict: Use the JSON diff when you care whether two documents mean the same thing, such as API responses or config exports. Use the text diff when the exact text matters or the input is not JSON. ### XML vs JSON URL: https://elci.dev/compare/xml-vs-json XML and JSON both carry structured data as text. JSON won most web APIs because it is smaller and maps directly to objects, but XML still does things JSON cannot. **XML Formatter & Minifier** - Supports attributes, namespaces and mixed content, so it can mark up documents as well as data. - Mature schema and transformation tooling: XSD, XPath and XSLT. - More verbose, because every element needs a closing tag. **JSON Formatter** - Compact syntax that maps directly to objects, arrays, strings, numbers and booleans. - Native parsing in every browser and most languages. - No comments, attributes or namespaces, and no built-in schema language. Verdict: Choose JSON for web APIs and configuration where you exchange plain data. Choose XML when you need document markup, namespaces or an existing XML toolchain, as in SOAP, feeds and office formats. ### robots.txt vs Meta Robots URL: https://elci.dev/compare/robots-txt-vs-meta-robots robots.txt and the robots meta tag look similar, but they act at different steps. One decides whether a crawler may fetch a URL, the other decides what a search engine does with a page it has already fetched. **Robots.txt Generator** - Controls crawling: it asks bots not to request certain paths. - One file for the whole host, so it suits site-wide rules and crawl budget. - A blocked URL can still be indexed from external links, without a snippet. **Meta Tags Generator** - Controls indexing and link following for a single page, with noindex and nofollow. - Lives in the page head, or in an X-Robots-Tag header for non-HTML files. - Works only if the crawler can fetch the page and read the tag. Verdict: To keep a page out of search results, let it be crawled and add noindex. Use robots.txt to keep bots away from sections you do not want crawled, and never rely on it to hide a page. ### JSONPath vs Regex URL: https://elci.dev/compare/jsonpath-vs-regex When you need one value from a JSON payload, a regex can look like a quick fix. JSONPath exists for this job, and the difference shows up as soon as the data nests or the formatting changes. **JSONPath Tester** - Understands the structure: objects, arrays and nesting, not just characters. - Selects by path or filter, such as every price under 10. - Is not affected by whitespace, key order or string escaping. **Regex Tester** - Matches text patterns in any string, including logs and malformed JSON. - Needs no JSON parsing step and works in any language. - Breaks easily on nested data, escaped quotes and reformatted input. Verdict: Parse the JSON and use JSONPath whenever the input is valid JSON. Keep regex for text that is not JSON, or for matching inside a string value after you have extracted it. ### Meta Tags vs Open Graph URL: https://elci.dev/compare/meta-tags-vs-open-graph Both live in the head of the page, and they overlap on the title and description. They serve different audiences: search engines read the standard tags, and social networks and chat apps read Open Graph. **Meta Tags Generator** - Standard tags: title, description, canonical and robots, read by search engines. - Control the search result snippet and which URL is indexed. - No image field, so they do not shape the share card. **Open Graph Preview** - Open Graph tags: og:title, og:description, og:image and og:url, read by social platforms and chat apps. - Control the preview card shown when a link is shared. - Fall back to the standard title and description when missing, which is often not what you want. Verdict: Set both. Write the standard tags for search, add Open Graph and Twitter tags for sharing, then preview the card to check the image and text before you publish.