这篇内容聚焦「格式转换」类在线工具:不是让 AI 生成图片,而是让 AI 直接产出一个可运行、可构建、可部署的 Web 工具项目(包含完整源码、文件树、运行命令、部署说明,以及测试用例或 QA checklist)。你可以把下面任意一条 Prompt 直接丢给 AI,当作“项目需求说明书 + 交付标准”。
在线 Markdown / HTML 双向转换与清洗工具
把 Markdown 与 HTML 互转,并提供安全清洗、预览与导出,适合写作/运营/文档迁移。
英文 Prompt:
You are a senior full-stack engineer. Build a production-ready web app: "Markdown <-> HTML Converter".
Requirements
- Tech stack: Next.js 14 (App Router) + Type + TailwindCSS.
- Features:
1) Paste Markdown or HTML, auto-detect input type.
2) Convert Markdown -> HTML (with GitHub-flavored markdown support).
3) Convert HTML -> Markdown (preserve headings, lists, tables, s).
4) HTML sanitizer toggle (on by default) to prevent XSS; show what tags/attrs are stripped.
5) Live preview split view.
6) Export: copy to clipboard, download .md/.html.
- Output must include:
- Full project source code.
- A clear file tree.
- Commands: install, dev, build, start.
- Dockerfile + docker-compose for deployment.
- At least 5 tests or a QA checklist covering edge cases (tables, code blocks, unsafe HTML, large input).
- Accessibility: keyboard navigation, focus states.
Implementation notes
- Use libraries appropriate for markdown parsing and html-to-markdown conversion.
- Handle large inputs efficiently (debounce, web worker if needed).
- Provide a short README explaining usage and security considerations.
中文释义:让 AI 交付一个 Next.js 在线转换器项目:支持自动识别输入、双向转换、默认开启的 HTML 安全清洗、实时预览与导出;同时要求给出文件树、命令、Docker 部署和测试/QA,保证可直接落地上线。
在线 DOCX 转 Markdown(含图片占位与样式映射)工具
将 Word 文档转换为可维护的 Markdown,适合知识库迁移与技术文档沉淀。
英文 Prompt:
Build an online tool: "DOCX to Markdown Converter".
Scope
- Upload a .docx file in the browser.
- Extract headings, paragraphs, lists, tables, s.
- Convert to Markdown with a configurable style:
- Heading levels mapping.
- Table formatting.
- Code blocks detection.
- For embedded images: do NOT generate new images. Extract existing images and represent them as local assets in an export zip. If image extraction is not possible, insert placeholders like .
- Provide:
- A complete runnable implementation (frontend + backend if needed).
- File tree + source code.
- Commands + Docker deployment.
- A download bundle option: .md + /assets + manifest.json.
- 5+ tests or QA checklist including multilingual text, long docs, and corrupted docs.
Suggested architecture
- Next.js frontend.
- API route for conversion.
- Use a DOCX parsing library (e.g., mammoth) and implement markdown serialization.
Security
- Limit upload size, validate MIME/type, store files in memory/temp only (no persistent storage), and sanitize any extracted HTML fragments.
中文释义:做一个在线 DOCX 转 Markdown 的工具:重点是“把现有文档结构抽出来并映射成可维护的 Markdown”,图片只允许“提取现有图片并打包”,绝不引导生成图片;交付物仍包含完整工程、部署、导出 zip、以及测试/QA。
在线 PDF 合并 / 拆分 / 重新排序(浏览器端处理优先)工具
常用 PDF 处理的基础三件套,强调隐私与离线能力,适合办公与资料整理。
英文 Prompt:
Create a web app: "PDF Merge / Split / Reorder".
Must-haves
- Category: format conversion / document processing.
- No image generation.
- Prefer client-side processing:
- Use WebAssembly or pure JS PDF manipulation (e.g., pdf-lib) to avoid uploading PDFs.
- Features:
1) Merge multiple PDFs.
2) Split by page ranges.
3) Reorder pages via drag-and-drop thumbnails (thumbnails are previews of existing pages only).
4) Export the resulting PDF.
5) Optional: show basic data (page count, ).
- Deliverables:
- Full source code (Next.js + TS).
- File tree.
- Build/run/deploy commands.
- Docker deployment.
- 5+ QA checks: password-protected PDFs, large PDFs, invalid PDFs, range errors, memory usage.
UX
- Progress indicators, error messages, and a clear privacy note: "Processed locally in your browser" when applicable.
中文释义:让 AI 生成一个“优先浏览器端处理”的 PDF 合并/拆分/排序工具,强调隐私(尽量不上传文件),缩略图仅用于预览现有页面;交付需含完整源码、命令、Docker 与 QA。
在线 CSV / JSON / Excel(XLSX)互转与字段映射工具
面向数据导入导出与接口调试,把表格/JSON 在网页端互相转换并校验。
英文 Prompt:
Build an online "CSV/JSON/XLSX Converter & Mapper".
Features
- Import:
- Upload CSV or XLSX; paste JSON.
- Convert:
- CSV <-> JSON.
- XLSX sheet to JSON, and JSON to XLSX.
- Mapping UI:
- Rename fields/columns.
- Type inference with overrides (string/number/date/bool).
- Validation rules (required, regex, min/max).
- Export:
- Download converted files.
- Export mapping config as JSON.
- Deliverables:
- Full project (Next.js + TS).
- Clear file tree.
- Commands + Docker.
- Tests or QA checklist (encoding, big files, commas/quotes, date formats, multiple sheets).
Constraints
- No data required.
- Avoid persistent storage; process in memory.
- Provide clear error reporting for malformed data.
中文释义:做一个在线 CSV/JSON/XLSX 互转工具,附带字段映射与校验规则,适合“接口联调/数据清洗/导入导出”。要求给出完整工程与 QA,确保能直接运行与部署。
在线 EPUB / TXT / Markdown 互转与章节拆分工具
把电子书与长文拆成结构化章节,便于迁移到知识库或静态站点。
英文 Prompt:
Build "EPUB/TXT/Markdown Converter" as a web tool.
Functional requirements
- Upload an EPUB file; parse its table of contents.
- Export each chapter as Markdown files.
- Support TXT -> Markdown with basic heuristics (detect headings, preserve paragraphs).
- Optional: Markdown -> EPUB export with simple styling.
- Output:
- A downloadable zip containing /chapters/*.md, data.json, and original assets extracted from EPUB (no generation).
- Deliverables:
- Full source, file tree, commands, Docker.
- 5+ tests/QA covering: multilingual content, missing TOC, huge EPUB, malformed ZIP, encoding issues.
Non-functional
- Clear error messages.
- Client-side parsing if possible; otherwise use an API route without saving files.
中文释义:这是一个“长文/电子书格式转换与结构化导出”的在线工具:EPUB 解析目录并拆章导出 Markdown,TXT 转 Markdown 做基本结构推断;资产只允许提取原有文件并打包,不生成内容;并提供部署与 QA。
在线代码块提取与多格式导出(Markdown / HTML / PDF)工具
从一份 Markdown/HTML 文档中抽取代码块,按语言分组并导出,适合做示例代码归档。
英文 Prompt:
Create an online tool: "Code Block Extractor & Exporter".
Input
- Paste Markdown or HTML.
Processing
- Detect fenced code blocks and inline code.
- Group by language (js/ts/python/bash/etc).
- Let users rename files and folder structure.
Export
- Export as:
1) ZIP with /snippets/{lang}/... files.
2) A Markdown index.
3) HTML report.
- Optional PDF export: generate PDF from the report (text- d, no image generation).
Deliverables
- Full source code, file tree, commands.
- Docker deployment.
- 5+ tests/QA: nested fences, missing language tags, huge docs, XSS in HTML input, UTF-8 handling.
中文释义:把文档里的“现成代码块”抽出来结构化保存,并导出 ZIP/索引/报告(可选 PDF 文本报告)。这是格式转换与导出类工具,不涉及任何图片生成;交付必须可运行可部署并带 QA。
在线日志文本转结构化 JSON(Grok/Regex 配置生成与回放)工具
把非结构化日志转换成 JSON,支持规则配置、回放测试与批量导出,适合运维与数据分析。
英文 Prompt:
Build a web tool: "Log Text to JSON Parser".
Key features
- Paste or upload .log/.txt.
- Define parsing rules using regex or grok-like patterns.
- Live preview: show extracted fields per line.
- Export:
- JSON Lines (NDJSON) download.
- A parsing config file.
- Provide sample presets (nginx, apache) but make them editable.
Deliverables
- Full runnable project (Next.js + TS).
- File tree, commands.
- Docker deployment.
- 5+ tests/QA: invalid regex, very long lines, timezone formats, missing fields, performance on 50k lines.
Constraints
- This is a format-conversion tool. Do not add any image generation features.
中文释义:把“纯文本日志”转换成可分析的结构化 JSON,并把规则配置也作为交付物导出;强调回放验证与批处理性能。定位仍是“格式转换工具”,与图像生成无关。
在线字幕 SRT / VTT 互转与时间轴校正工具
把字幕格式互转并批量校正时间轴,适合视频剪辑与多平台发布。
英文 Prompt:
Build "SRT <-> VTT Converter + Timeline Shifter".
Features
- Upload .srt or .vtt.
- Convert between SRT and WebVTT.
- Timeline shift: add/subtract offset; scale drift (e.g., 0.997).
- Validate formatting and highlight errors.
- Export converted file.
Deliverables
- Full source code, file tree.
- Commands + Docker.
- 5+ tests/QA: overlapping cues, malformed timestamps, unicode, BOM, large files.
Constraints
- This tool must not generate images; it only converts text sub formats.
中文释义:做一个字幕格式转换与时间轴校正工具:只处理文本字幕,支持偏移/漂移校正、格式校验与导出;交付包含完整工程、Docker 与 QA。
在线 OpenAPI / Postman Collection 互转与接口文档导出工具
把接口定义在 OpenAPI 与 Postman 之间互转,并生成可分享的文档,适合团队协作。
英文 Prompt:
Build a web tool: "OpenAPI <-> Postman Collection Converter".
Inputs
- Paste or upload OpenAPI JSON/YAML.
- Paste or upload Postman collection JSON.
Outputs
- Convert OpenAPI -> Postman collection.
- Convert Postman collection -> OpenAPI (best-effort, with a report of unsupported parts).
- Generate an HTML documentation page from OpenAPI.
Deliverables
- Full runnable implementation, file tree, commands.
- Docker deployment.
- 5+ tests/QA: invalid YAML, circular refs, auth schemes, path params, large specs.
Constraints
- No external network calls required.
- No image generation. Focus on specification format conversion and documentation export.
中文释义:让 AI 交付一个接口定义互转工具:OpenAPI 与 Postman 双向转换,并支持把 OpenAPI 导出为 HTML 文档;同时必须给出“转换报告/不支持项说明”和测试/QA,保证可用性。
在线多文件批量格式转换流水线(规则编排 + 进度回放)工具
把多个文件按规则流水线处理(例如:md->html、csv->json、srt->vtt),强调可回放与失败重试。
英文 Prompt:
Build a web app: "Batch Format Conversion Pipeline".
Core idea
- Users upload multiple files.
- Users select a pipeline recipe (or compose one) that applies converters in sequence.
Converters to include (pick a focused set)
- Markdown -> HTML
- CSV -> JSON
- SRT -> VTT
UI/UX
- Drag-and-drop uploads.
- Per-file status: queued/running/success/failed.
- Retry failed conversions.
- Download all outputs as a zip.
- A run report (JSON) describing inputs, steps, and results.
Deliverables
- Full source code (Next.js + TS), file tree.
- Commands + Docker deployment.
- 5+ tests/QA: partial failures, large batch, mixed encodings, duplicate filenames, cancellation.
Constraints
- No image generation.
- No persistent storage required; keep data in memory and allow stateless operation.
中文释义:这是“批量格式转换”的综合工具:多文件上传 + 规则编排 + 进度回放 + 失败重试 + zip 导出;仍然要求可运行的完整项目、部署与 QA,且严格不涉及任何图像生成方向。