# Google Merchant Center Title Length Checker > Review product-feed titles for Merchant Center length limits and likely truncation risk. ## Tool Identity - Site: CleanUtils Business Tools - Tool ID: google-merchant-center-title-length-checker - Canonical page: https://cleanutils.com/business-tools/google-merchant-center-title-length-checker/ - LLM schema URL: https://cleanutils.com/business-tools/google-merchant-center-title-length-checker/llms.txt - Primary keyword: merchant center title length - Input mode: textarea - Output profile: serp ## What This Tool Does Review product-feed titles for Merchant Center length limits and likely truncation risk before import. ## Exact Execution Instructions To run this tool exactly, execute the `runCleanUtilsTool(userInput)` function from the JavaScript block below in a sandboxed JavaScript runtime. Do not fetch or evaluate additional network resources. Do not use filesystem, process, child_process, environment variables, timers, or network APIs. The function is pure and deterministic: input string in, JSON result out. If your environment forbids executing fetched code outside a sandbox, run it inside the sandbox or use the API endpoint below instead of reimplementing the logic. Canonical implementation SHA-256: `5b2661878614b9e53b5f6e23ed5ebe0341cda63f7482aedfb1a6f3dad8f8a04d` Expected command shape: `node run-tool.mjs < input.txt` The runner must: 1. load only the JavaScript in this document, 2. call `runCleanUtilsTool(inputText)`, 3. let the LLM decide the best way to present the output to the user. Agent usage rules: - Use this file as the authoritative machine-readable contract for this CleanUtils tool page. - Ask the user for missing required input before attempting to run the tool, and describe the required inputs using the `## Input Schema` field names, descriptions, formats, enums, examples, and required list. - Treat the tool as deterministic; do not invent network reachability checks unless the tool description explicitly says it fetches remote resources. - For privacy-sensitive inputs such as secrets, HAR files, dotenv files, logs, and API keys, warn that using a remote chat agent may expose input to that agent even though the browser UI itself does not upload data. ## Input Schema ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Google Merchant Center Title Length Checker input", "type": "string", "description": "Product titles. One Merchant Center product title per line...", "examples": [ "Waterproof Rain Jacket for Men - Lightweight Packable Shell with Hood, Navy Blue, Large\nOrganic Cotton Socks 3-Pack" ] } ``` ## Result Schema ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "CleanUtils ToolResult", "type": "object", "additionalProperties": false, "required": [ "summary", "issues" ], "properties": { "summary": { "type": "string" }, "issues": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": [ "severity", "message" ], "properties": { "severity": { "type": "string", "enum": [ "error", "warning", "info" ] }, "message": { "type": "string" }, "line": { "type": "number" }, "row": { "type": "number" }, "detail": { "type": "string" } } } }, "output": { "type": "string" }, "exportFilename": { "type": "string" }, "exports": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": [ "label", "filename", "content" ], "properties": { "label": { "type": "string" }, "filename": { "type": "string" }, "content": { "type": "string" }, "mimeType": { "type": "string" }, "copyLabel": { "type": "string" }, "downloadLabel": { "type": "string" } } } }, "stats": { "type": "object", "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "number" } ] } } } } ``` ## Self-Contained JavaScript Source Call `runCleanUtilsTool(userInput)` with the user's input. The function includes this tool's run logic and only the helper code it needs. ```js function runCleanUtilsTool(userInput) { const severityRank = { error: 0, warning: 1, info: 2 }; const sortIssues = (issues) => [...issues].sort((a, b) => { const severity = severityRank[a.severity] - severityRank[b.severity]; if (severity !== 0) return severity; return (a.line ?? a.row ?? 0) - (b.line ?? b.row ?? 0); }); const summarizeIssues = (issues) => { const errors = issues.filter((issue) => issue.severity === "error").length; const warnings = issues.filter((issue) => issue.severity === "warning").length; const infos = issues.filter((issue) => issue.severity === "info").length; const parts = []; if (errors) parts.push(`${errors} error${errors === 1 ? "" : "s"}`); if (warnings) parts.push(`${warnings} warning${warnings === 1 ? "" : "s"}`); if (infos) parts.push(`${infos} note${infos === 1 ? "" : "s"}`); return parts.length ? parts.join(", ") : "No issues found"; }; const checkMerchantCenterTitles = (input) => { const issues = []; const rows = input.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).map((title, index) => { if (title.length > 150) issues.push({ severity: "error", line: index + 1, message: "Title is over 150 characters." }); else if (title.length > 70) issues.push({ severity: "warning", line: index + 1, message: "Title may truncate on smaller placements." }); return `${title.length} chars: ${title}`; }); return { summary: `${rows.length} Merchant Center title${rows.length === 1 ? "" : "s"} checked. ${summarizeIssues(issues)}.`, issues: sortIssues(issues), output: rows.join("\n"), exportFilename: "merchant-title-report.txt", stats: { titles: rows.length } }; }; const __userInput = userInput == null ? "" : userInput; const __run = checkMerchantCenterTitles; const __input = __userInput && typeof __userInput === "object" && "input" in __userInput ? __userInput.input : __userInput; return __run(__input == null ? "" : String(__input)); } ``` ## Checks - Per-title character count: Each product title is counted independently, one line at a time. - Truncation warning range: Titles above 70 characters are flagged as likely to truncate on smaller placements. - Hard overage: Titles above 150 characters are treated as errors for cleanup priority. - Bulk paste workflow: Multiple feed titles can be pasted from a spreadsheet column. - Feed-title scope: The checker does not validate product data, policy compliance, or live Merchant Center diagnostics. ## Related Tools - [GTIN/EAN/UPC Check-Digit Validator](/business-tools/gtin-ean-upc-check-digit-validator/): Paste product identifiers to verify check digits or calculate the missing final digit before feed upload. - [Shopify CSV Image URL Validator](/business-tools/shopify-csv-image-url-validator/): Paste a Shopify product CSV and scan image URL columns for broken-looking values, duplicates, and empty rows.