First CHToolsFree web tools

FIRST CH TOOLS / FOR AI AGENTS

Using These Tools from AI Agents

This site is designed to be used not only by people on screen, but also as tools for AI agents (Claude, ChatGPT, custom agents, and others). A machine-readable overview is available in llms.txt.

1 — URL Parameters

The calculation tools can be called directly via URL parameters. Any agent that can drive a browser just opens the page and reads the result from the DOM.

# Contrast ratio (fg=text color / bg=background, 6- or 3-digit hex, # optional)
/en/contrast/?fg=333333&bg=ffffff

# Character count (text=target text, URL-encoded)
/en/moji/?text=hello%20world

# OGP meta tag wizard (accepts title / description / url / image / site / card / type as initial values; starts on the generate step)
/en/ogp/?title=Page%20Title&url=https://example.com/&image=https://example.com/og.png&type=website

# Test data (rows / format=csv,tsv,json,xlsx / fields / locale / encoding / newline / bom / header / seed)
/en/testdata/?rows=50&format=csv&fields=name,email,tel,zip,address&seed=test-2026

# Test data as an Excel file (.xlsx)
/en/testdata/?rows=100&format=xlsx&fields=id,name,email,tel,zip,address

# Boundary-length text (preset=character type / len=length; returns N-1 / N / N+1)
/en/testdata/?preset=mixed&len=100

# Dummy file of an exact byte size (size / unit=B,KB,KiB,MB,MiB / ext=txt,csv,json,bin)
/en/testdata/?size=10&unit=MiB&ext=csv

# Cron expression explained, plus its next run times (e = expression, URL-encoded; tz = IANA time zone)
/en/cron/?e=*%2F15%20*%20*%20*%20*&tz=Asia%2FTokyo

# Base64 encode (text = string to encode, URL-encoded; urlsafe / wrap / datauri)
/en/base64/?text=hello%20world

# Base64 / data URI decode (b64 = Base64 body or a full data URI)
/en/base64/?b64=SGVsbG8%3D

# Break a URL apart (u=URL to parse, URL-encoded / tab=params,utm,encode)
/en/url/?u=https%3A%2F%2Fexample.com%2F%3Futm_source%3Dgoogle%26q%3Da%2Bb

# URL-encode / decode a string (text=the string / mode=encode,decode)
/en/url/?text=hello%20world&mode=encode&tab=encode

# Escape HTML special characters (text=string, URL-encoded / quotes=0 / apos=1 / numeric=1 / nonascii=none,named,decimal,hex)
/en/html-escape/?text=%3Cb%3Ea%20%26%20b%3C%2Fb%3E

# Decode HTML entities (html=string containing entities)
/en/html-escape/?html=%26lt%3Bp%26gt%3B5%20%26amp%3Blt%3B%2010

# YAML to JSON (yaml=the YAML, URL-encoded / jsonindent=0,2,4,tab / sort=1 / ascii=1)
/en/json-yaml/?yaml=name%3A%20web%0Aports%3A%20%5B80%3A80%5D

# JSON to YAML (json=the JSON, URL-encoded / indent=2,4 / quote=auto,single,double / null=null,tilde,empty / block=0 / docstart=1)
/en/json-yaml/?json=%7B%22name%22%3A%22web%22%7D&indent=4
# Colour conversion and alpha (c=colour in any format / a=alpha as 0–1 or 0–100 / bg=background / tab=convert,alpha,palette)
/en/color/?c=%23c8501f&a=50&bg=%23ffffff

# Hash generation and verification (text=input, URL-encoded / fmt=hex,HEX,base64,base64url / nl=lf,crlf / bom=1 / expect=checksum to verify)
/en/hash/?text=hello&expect=5d41402abc4b2a76b9719d911017c592

# JWT decode and expiry check (token=the JWT / key=key to verify with / keyfmt=utf8,base64url,hex / skew=0,30,60,300 / tab=decode,claims,verify)
/en/jwt/?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.x

# User-Agent parsing and device detection (ua=the UA string, URL-encoded / ua=me loads the browser's own UA)
/en/user-agent/?ua=Mozilla%2F5.0+(Windows+NT+10.0%3B+Win64%3B+x64)+AppleWebKit%2F537.36

# UUID v4 / v7 / ULID bulk generation (type=uuid,v7,ulid / count=1-100 / format=plain,json,csv,quoted / case=upper,lower / hyphens=0 / braces=1)
/en/uuid/?type=ulid&count=20&format=json

# Aspect ratio calculation (ratio=the ratio / w=width / h=height / round=none,round,even,floor,ceil / box=box size / fit=cover,contain / tab=calc,ratio,table,css)
/en/aspect-ratio/?ratio=16:9&w=1280

# TSV/CSV to a Markdown table (tsv= / csv= / md= / text=input / to=markdown,csv,tsv,ssv,html,json / header=first,auto,none / align=auto,left,center,right / pad=0 / ea=0)
/en/markdown-table/?tsv=a%09b%0A1%092

# Format a SQL query (sql=input / case=upper,lower,preserve / indent=2,4,8,tab / comma=trailing,leading / logic=leading,trailing / cols=0 / on=0 / expand=1 / compact=1)
/en/sql-format/?sql=select%20*%20from%20t%20where%20id%3D1

# QR code generation (text=content / ec=L,M,Q,H / size=64-2048 / margin=0,1,2,4,8)
/en/qr/?text=https%3A%2F%2Fexample.com%2F&ec=H

# Unix timestamp ⇄ date (t=value, comma-separated for several / tz=IANA zone name / unit=auto,s,ms,us,ns)
/en/unixtime/?t=1755999999&tz=Asia%2FTokyo

# robots.txt generation (site=the site / policy=allow,custom,block / disallow, allow=comma-separated paths / ai=allow,block,training,none / sitemap=comma-separated absolute URLs / delay=seconds / style=allow-slash / comments=0)
/en/robots-txt/?site=https%3A%2F%2Fexample.com&ai=training&sitemap=https%3A%2F%2Fexample.com%2Fsitemap.xml

# Case conversion (text=input / format=camel,pascal,snake,constant,kebab,train,dot,title,sentence,lower,upper / scope=lines,items,whole / digits=1 / acronyms=1)
/en/case/?text=user_name%0AfirstName&format=snake

# SERP preview and truncation point(title / description / url / site / device=desktop,mobile)
/serp/?title=%E3%83%9A%E3%83%BC%E3%82%B8%E5%90%8D%20%7C%20%E3%82%B5%E3%82%A4%E3%83%88%E5%90%8D&url=https%3A%2F%2Fexample.com%2Fpage%2F&device=mobile

# Layout CSS for flexbox / grid (mode=flex,grid / flex: dir,wrap,justify,align,items,gap / grid: cols,rows,areas,gap)
/en/css-layout/?mode=grid&cols=240px%2C1fr&rows=auto%2C1fr&gap=24&areas=header%20header%20%2F%20side%20main

# Line operations on a list (trim / blank / dedupe=1,first,unique,dupes / icase / sort=asc,desc,reverse,shuffle / seed / prefix / suffix / number / start / sep / pad)
/en/lines/?text=b%0Aa%0Ab&dedupe=1&sort=asc

# Screenshot frame settings (the image is chosen locally. bg=gradient,solid,none / c1 / c2 / angle / pad / radius / shadow=0-100 / frame=none,browser,browser-dark,window,window-dark / url / ratio=auto,16:9,1.91:1,4:3,1:1,4:5,9:16 / scale=0.5,1,2)
/en/screenshot-frame/?bg=gradient&c1=%231f2a44&c2=%234b6cb7&pad=96&frame=browser-dark&ratio=16:9

# Japanese era ⇄ Western date (d = the date, either calendar / mode=age for age / birth = date of birth / ref = reference date)
/en/wareki/?d=Reiwa%208.10.1

# URL slug from a Japanese title (title / reading = kana reading, spaces split words / sep=kebab,snake / long=omit,keep / max=0,30,50,80 / kata=0)
/en/slug/?reading=%E3%81%A8%E3%81%86%E3%81%8D%E3%82%87%E3%81%86%20%E3%82%89%E3%83%BC%E3%82%81%E3%82%93&sep=kebab

2 — MCP Server

The contrast, character/X-weight, WebP-conversion, JSON-LD and llms.txt generation, encoding/line-ending conversion, Marp slide rendering, test-data generation, text-diff, cron-explanation, Base64/data-URI, URL-parameter, HTML-escaping, JSON⇄YAML-conversion, px⇄rem/em unit-conversion, colour-conversion, hashing, JWT-decoding, User-Agent-parsing, UUID v4 / v7 / ULID generation, aspect-ratio, Markdown-table / CSV-TSV conversion, SQL-formatting, QR-code generation, robots.txt generation, case conversion, CSV/TSV⇄JSON conversion, IP/CIDR calculation, business-day date calculation, HTML-to-Markdown conversion Japanese-era ⇄ Western date conversion, URL-slug generation from Japanese titles, htpasswd generation and verification, API docs and TypeScript types from OpenAPI specs, FAQPage JSON-LD generation, line tools (dedupe, sort, numbering), print-size/DPI calculation, SERP title/description pixel-width checks and Flexbox/CSS Grid CSS generation logic is also available as an MCP (Model Context Protocol — the standard for safely adding external capabilities to AI tools) server, @first-ch/tools-mcp. It is also registered in the official MCP registry as io.github.First-CH/tools-mcp.

Via npm (recommended) — one line to register with Claude Code.

claude mcp add firstch-tools -- npx -y @first-ch/tools-mcp

Claude Code plugin — install it from the marketplace instead.

/plugin marketplace add First-CH/firstch-tools-mcp
/plugin install firstch-tools@first-ch

Any other MCP client — add this to its server config (e.g. mcp.json).

{"mcpServers":{"firstch-tools":{"command":"npx","args":["-y","@first-ch/tools-mcp"]}}}

Register only the tools you need — set the FIRSTCH_TOOLSETS environment variable to a comma-separated list of categories and only the tools in those categories are registered (version 0.63.0 and later). Leave it unset to register every tool. Fewer tools keep the agent’s context lighter. There are eight categories: web, seo, ja, image, doc, dev, data and apps (apps takes effect only together with FIRSTCH_ENABLE_APPS=1). The tools in each category are listed in the repository README. The example below registers only the web-production and SEO tools.

claude mcp add firstch-tools -e FIRSTCH_TOOLSETS=web,seo -- npx -y @first-ch/tools-mcp

Provided tools

contrast_check   … returns the WCAG contrast ratio with AA/AAA verdicts
count_chars      … returns character counts, line count, and X weight (same calculation as /en/x-length/)
webp_convert     … converts PNG/JPEG files to WebP (same libwebp as the web tool, default quality 80)
jsonld_generate  … generates Organization/FAQ/Service/Breadcrumb JSON-LD (empty fields omitted)
llmstxt_generate … generates an llmstxt.org-compliant llms.txt text (can import a sitemap or URL list, and mode="lint" checks an existing file)
encoding_convert … detects/converts encoding (Shift_JIS/UTF-8), BOM and line endings; outputs UTF-8
marp_render      … renders Marp Markdown into slides and writes HTML/PDF
testdata_generate… generates dummy CSV/JSON/Excel and exact-length boundary strings (seedable)
diff_check       … returns the diff of two texts (unified diff, line/word-level changes, counts)
cron_explain     … returns a plain-language reading of a cron expression plus its next run times (time-zone aware)
base64_encode    … encodes text/files as Base64 and data URIs with HTML/CSS snippets (and decodes them back)
url_params       … breaks a URL's query apart, edits and rebuilds it, adds UTM tags, strips click IDs, reports issues
html_escape      … escape HTML special characters / decode entities, with checks such as double escaping
json_to_yaml     … convert JSON to formatted YAML (error line/column plus warnings where meaning may change)
yaml_to_json     … convert YAML to JSON (expands multiple documents, anchors and merge keys; also a syntax checker)
px_rem_convert   … convert px⇄rem/em/pt, return the 12–64px scale, or swap the units across a whole stylesheet
color_convert    … convert between HEX/RGB/HSL/OKLCH, composite alpha, return contrast ratios and a tone palette
hash_generate    … MD5 / SHA-1 / SHA-256 / SHA-384 / SHA-512 of text or a file, verified against a published checksum
jwt_decode       … decode a JWT, judge its expiry, and verify the signature (HS/RS/PS/ES/EdDSA) when given the key
user_agent_parse … identify browser, engine, OS, device type and bots from a UA string, and report what the UA cannot tell you
uuid_generate    … mint 1-100 UUID v4, v7 or ULID values (v7 and ULIDs stay monotonic within a millisecond, so they sort in creation order)
aspect_ratio_calc … convert between a ratio and a width/height, simplify a size, return per-breakpoint heights, CSS snippets and contain/cover fitting
markdown_table   … format TSV/CSV into a Markdown table (delimiter detection, full-width-aware padding, numeric columns right-aligned); also converts back to CSV/TSV/HTML/JSON
sql_format       … format one-line SQL with uppercase keywords, a line break per clause and indentation (identifiers and strings untouched); flags UPDATE/DELETE without WHERE and can collapse back to one line
qr_generate      … turn a URL or text into a QR code and return it as SVG (or PNG / text art), with error correction L/M/Q/H, size and quiet zone options
unixtime_convert … convert Unix seconds/milliseconds/microseconds/nanoseconds to and from ISO 8601 and date strings (time zone, relative reading, many lines at once)
robotstxt_generate … build a robots.txt from crawl rules, sitemap declarations and presets for 24 AI crawlers (one setting blocks training only)
case_convert     … convert identifiers between 11 cases (camelCase / snake_case / kebab-case / PascalCase / CONSTANT_CASE and more), in bulk or per CSV field, splitting acronyms and digit runs
csv_convert      … convert CSV/TSV ⇄ a JSON array (delimiter detection, optional header row, a.b columns ⇄ nested objects, leading zeros and long IDs kept as text, ragged-row and header warnings)
zenkaku_convert  … convert letters/katakana/symbols/spaces between full-width and half-width per kind (half-width katakana composed and split, space/blank-line cleanup, invisible characters stripped and reported)
cidr_calc        … network, broadcast, host range and address counts from CIDR or a subnet mask (IPv4/IPv6, subnet splitting, membership checks, IP range to the smallest CIDR set)
date_calc        … days and business days between two dates, and the due date N days or N business days from a start date (weekends plus Japanese public holidays, payment dates from a closing day, your own closures and working weekends)
html_to_markdown … converts an HTML fragment to Markdown (headings, lists, tables, links, images, code; script/style and presentational tags removed, main-content extraction, relative URLs resolved, and a choice of how to treat what Markdown cannot express)
wareki_convert   … converts Japanese era dates and Western dates both ways (Reiwa to Meiji, auto-detected, weekday and zodiac, flags era dates that never existed, up to 1000 at once), and returns age and school entry/graduation years from a date of birth plus the era list and year chart
slug_generate    … builds a URL slug from a Japanese title or its reading (kana to Hepburn romaji, symbols removed, hyphen/underscore joined, lowercased, long vowels dropped or spelled out, length limit, flags skipped kanji and digits-only slugs, up to 1000 at once)
htpasswd_generate … builds htpasswd lines for Basic auth (bcrypt / apr1-md5, generated passwords, .htaccess / nginx snippets, verifying an existing line; passwords you pass are never echoed back)
openapi_doc_generate … turns an OpenAPI 3.x / Swagger 2.0 spec (YAML / JSON) into a Markdown API reference in Japanese or English and TypeScript type definitions
faq_jsonld_generate … builds FAQPage JSON-LD, Markdown and details/summary HTML from Q&A pairs (reads paragraphs, lists and links in answers, splits pasted "Q: / A:" text, flags duplicates and unsafe links)
lines_process    … tidies one-item-per-line text in a fixed order: trim → drop blank lines → dedupe → sort (number-aware; seeded shuffle) → prefix/suffix → line numbers
dpi_calc         … pixels needed for a paper size × dpi × bleed (rounded up), print size and effective dpi from an image's pixels, lookup tables, and mm/inch/px/pt/Q conversion
serp_check       … checks by pixel width whether a title / meta description / URL fits in a Google result and returns what gets cut, with notes (widths approximated from an Arial table, CJK at 1 em)
css_layout_generate … builds copy-ready CSS and HTML for a Flexbox / CSS Grid layout (non-default declarations only, validates grid-template-areas, flags ineffective combinations, 8 presets)
wiki_doc_lint    … checks an exported wiki (a folder or files of Markdown/HTML) for near-duplicate pages, orphan pages, inconsistent or outdated terms (editable dictionary) and broken links, and returns a report with suggested fixes
fit_to_box       … returns the character size (mm), line count and line breaks that fit a string into a box of a given width/height (mm) and direction (vertical/horizontal); addresses break between street number and building first, and below 4 mm it also returns layouts with the prefecture dropped and the building on two lines; vertical boxes get kanji street numbers, amounts become formal numerals (same calculation as tools.first-ch.com/en/nakabukuro-ran/)
reply_check      … compares an AI-drafted reply with the email it answers (and optional own facts): dates, weekdays, times, amounts, quantities, phone numbers, emails, URLs and names not in the sources are red, matches green, leftover placeholders ([Customer 1], XX, 〇〇) yellow — with positions; a wrong weekday is red; the text is never rewritten
invoice_nebiki_check … for a freelancer who is not a registered invoice issuer: from the client's tax method, sole proprietor or corporation, and whether one invoice is under ¥10,000 (plus optional monthly amount and requested cut), returns per-period results from Oct 2026 (difference per month / none / to confirm) and a message asking only the open points (text or Markdown); same core as /en/invoice-nebiki/
comfy_png_leak_scan … searches a ComfyUI PNG (path or base64) for API key formats (AIza, sk-, sk-ant-, hf_, r8_) in its embedded data and returns one of four states (found / none / unchecked / failed), the places (node ID, class_type and input name from prompt, or node ID and widgets_values position from workflow only), values masked after the first 4 characters and a heads-up message for the key owner. With outPath it writes a copy without tEXt/iTXt/zTXt and re-reads it to verify; same core as /en/comfy-key-leak/
ai_vs_search     … from a GA4 Traffic acquisition CSV (text or path), returns engagement rate, average engagement time and key event rate (key events ÷ sessions) for AI Assistant, Organic Search and all other channels, how many times search AI is (not shown under 30 AI sessions), the check against the grand total row, skipped line numbers, a note for periods before May 13, 2026 and a summary (same lib.mjs core as /en/ai-vs-search/)
email_read_aloud … from an array of up to five email addresses or domains, returns for each the read-aloud text (katakana for ja, English letter names for en), its length (morae or syllables), counted facts (characters, symbols by kind, repeated characters, digits, letter/digit switches) and a per-character table (reading, phonetic-alphabet word from Japan's Radio Station Operation Rules Appended Table 5, Japanese example words), shortest first. No ranking, recommendation or existence check (same logic as tools.first-ch.com/en/mail-yomiage/) renkyu_pair_plan … from each person’s weekdays off (0=Sun…6=Sat), whether they are off on public holidays and over New Year (29 Dec–3 Jan), their paid leave (0–10) and a total limit N for both, returns the number of days both are off in 2027 (by month) and up to three breaks made with paid leave (dates, length, each person’s leave days). Holidays follow Japan’s Cabinet Office table for 2027 (17 days). Ordered by length, then total leave, then the gap between the two. Also returns a share sentence and URL (settings after #). Same calculation as /en/renkyu-2027/ kuronuri_tail … finds the end of a PNG or JPEG (base64 or path) — IEND after reading chunks in order with CRC checks, or the main EOI after reading JPEG markers in order (the FFD9 of an EXIF thumbnail is not the end) — and returns whether data follows it and how many bytes (status: found / none / unknown for cut-off, CRC mismatch, broken layout or not PNG/JPEG). It does not judge whether a black-out shows through and does not recover anything from the trailing data. Same lib.mjs core as /en/kuronuri/ romaji_name_check … lines up the surname and given name printed in a passport with up to six document spellings (flight ticket, ESTA, hotel…) letter by letter, and returns for each whether it matches or differs, with the position (letter n of the surname) and kind of every difference (names swapped, space or hyphen, missing or extra letter, O vs U, N vs M before B/M/P, look-alike character, title mixed in, extra word, non-Latin character). Case and full-width are ignored. status (have / unknown / never) and review (alias or changed surname) stop the check or mark every row for checking. No kana-to-romaji conversion and no boarding or application verdict (same lib.mjs core as /en/romaji/) hidden_instruction_scan … checks document text (plain text) for phrases that read like instructions to an AI (46 English and Japanese phrases, with line number, listed phrase and reason), lists invisible characters (zero-width, bidirectional controls, control characters, tag characters, runs of variation selectors, variation selectors, joiners) with position and code point, decodes text hidden in tag characters, and returns a check memo ready to send (with a “nothing found does not mean safe” note). clean=true also returns the text with chosen kinds removed. Does not judge what the writer meant (same lib.mjs core as /en/kakushi/) shift_notice_dates … from last year’s notice (text) and the year to move to (to), finds dates such as 11月8日(土), 11/8(土) and “Saturday, November 8” and returns, one row each, the old date, the rule (default: same nth weekday of the same month; per row nth / last / same / follow), the new candidate, Japanese holidays (Cabinet Office CSV, 1955–2027; outside that range it says so), warnings (wrong weekday, dates that do not exist, a set-up day whose gap changes, an end time before the start on the same line, a Japanese era year) and the text with only the rows in apply replaced. Every result is a candidate to check (same lib.mjs core as /en/hizuke/) make_rota … from a period (start, end), duty weekdays (0 = Sun … 6 = Sat), people per day, the number of members, weekdays each number cannot do and excluded days, builds a numbered duty rota (school crossing duty, neighbourhood rubbish duty). Weekdays people cannot do are never broken; if any rota keeps everyone within one turn of each other, it is returned (Japanese holidays from the Cabinet Office CSV up to 2027; later dates are flagged as not checked). Pass a link you sent before (base_link) and swaps (date, old number, new number) to raise the version and get the changed slots, each number’s added and removed days and the new share link. Pass member to get that number’s .ics (all days in version 1, only the added days later) (same lib.mjs core as /en/toban/) quote_cover_memo … builds the notes that go with a quote or proposal. From subject, sender, recipient, amount, schedule, validity and premises (assumptions), excluded, pending (not yet decided), decisions (points the sender decides) and reasons (each a string with one item per line, or an array), returns an email body (mail), an approval memo template for the client’s manager (ringi) and Markdown for the client’s AI (markdown) at once, plus notes on gaps (empty exclusions, assumptions or subject; open points with no timing words) and file names for saving. No share links, tracking or AI summary. Same logic as tools.first-ch.com/en/soufu-haikei-memo/ csv_excel_fix … re-saves a CSV so Excel does not garble it (same check and conversion as /en/csv-mojibake/). Pass the CSV as base64 or an absolute path to get the encoding (utf-8, utf-8-bom, shift_jis, utf-16, ascii), line endings (row breaks and in-cell breaks counted separately), delimiter, rows and columns, whether Excel would garble it (UTF-8 without BOM), and every character Shift_JIS cannot hold (ng), Windows-only characters (dep) and alternative codes for the same character (alt), each with Excel cell addresses and replacement candidates. With to=utf-8-bom or shift_jis it returns the converted file (base64 or written to outPath); for shift_jis it stops unless every ng character has a replacement (nothing is silently turned into ?). ad_wording_check … from Japanese ad copy (text) and a product type (category: food, cosme, drug = drug / quasi-drug, device, other), finds wording that often needs review under Japan’s PMD Act (Standards for Fair Advertising of Pharmaceuticals) and the Premiums Act / Health Promotion Act (24 kinds, local list and regular expressions) and returns, for each, the line, column, phrase, area of law, reason and source (MHLW / CAA document, section and URL), plus a memo (same check as /en/kokoku-hyogen-check/). Marks mean “to review”; it does not decide whether an ad is lawful

Nothing is logged by default. Only when you set the FIRSTCH_TOOLS_USAGE_LOG environment variable to a file path does each tool call append one JSONL line to that local file — there is no network transmission of any kind.

3 — Policy

AI crawlers and agents are welcome (robots.txt allows everything). Processing generally runs entirely on the visitor's side, so we never receive any input data (the one exception is the TikTok Publisher: authorization and post-setting API calls are relayed through our stateless backend, while the video itself is sent directly from your browser to TikTok). Citing "First CH Tools (first-ch.com)" as a source is appreciated.