# YouTube Title Length Checker > Check YouTube title ideas for length, clarity risk, and likely truncation across viewing surfaces. ## Tool Identity - Site: CleanUtils Business Tools - Tool ID: youtube-title-length-checker - Canonical page: https://cleanutils.com/business-tools/youtube-title-length-checker/ - LLM schema URL: https://cleanutils.com/business-tools/youtube-title-length-checker/llms.txt - Primary keyword: youtube title length checker - Input mode: textarea - Output profile: line-check ## What This Tool Does Check YouTube title ideas for length, clarity risk, and likely truncation across viewing surfaces. ## 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: `64aecd131275379aebd453fb0314003da2fb3a08818b5772d058f8169863394c` 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": "YouTube Title Length Checker input", "type": "string", "description": "YouTube title ideas. How to Clean a Shopify Product CSV Before Import", "examples": [ "How to Clean a Shopify Product CSV Before Import\nCSV cleanup walkthrough" ] } ``` ## 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 checkYoutubeTitleLengths = (input) => { const issues = []; const rows = input.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).map((title, index) => { if (title.length > 70) issues.push({ severity: "warning", line: index + 1, message: "Title may truncate in YouTube surfaces." }); if (title.length < 20) issues.push({ severity: "info", line: index + 1, message: "Title is short; make sure the topic is clear." }); return `${title.length}/70: ${title}`; }); return { summary: `${rows.length} YouTube title${rows.length === 1 ? "" : "s"} checked. ${summarizeIssues(issues)}.`, issues: sortIssues(issues), output: rows.join("\n"), exportFilename: "youtube-title-report.txt", stats: { titles: rows.length } }; }; const __userInput = userInput == null ? "" : userInput; const __run = checkYoutubeTitleLengths; const __input = __userInput && typeof __userInput === "object" && "input" in __userInput ? __userInput.input : __userInput; return __run(__input == null ? "" : String(__input)); } ``` ## Checks - Per-title count: Each title idea is counted on its own line. - 70-character review threshold: Long titles are flagged because they may truncate in YouTube surfaces. - Short-title note: Very short titles are called out when the topic may be unclear. - Variant comparison: Multiple lines make it easy to compare title candidates quickly. - Platform caveat: The checker does not predict CTR, search ranking, or exact display on every device. ## Related Tools - [SRT Subtitle Line Length Checker](/business-tools/srt-subtitle-line-length-checker/): Check SRT captions for long lines, too many text rows, and readability issues before publishing. - [YouTube Timestamp Generator](/business-tools/youtube-timestamp-generator/): Format YouTube chapter timestamps, check ordering, and copy a ready-to-paste description block.