# Doc Bench > Local-first file workbench for local inspection, editing and PDF maintenance without uploads. Doc Bench runs at https://docbench.travny.workers.dev/. It is part of the TRAVNY Bench family and is designed for document inspection, editing and PDF maintenance while keeping source files on the device. ## Files (default workspace) - Add local files or folders; inspect signatures, MIME hints, metadata and previews without uploading content. - Open supported text and PDFs in existing specialist tools, or convert DOCX locally; unsupported formats remain inspectable. - Selection and active preview are independent. ZIP listing is read-only; extraction and packing are future work. ## Documents - Open HTTPS UTF-8 text URLs up to 5 MiB when CORS permits; edit CSV and HTML as plain source. - Edit arbitrary UTF-8 text and recognize TXT/Markdown, JSON-family, YAML/XML, INI/config, Batch/CMD, PowerShell, shell/dotfiles, .env and M3U/M3U8/PLS playlist files, with conservative content detection for generic or unknown filenames. - Save back to the opened file when the browser provides a writable handle; otherwise use Save as or download, while preserving or deliberately changing UTF-8 BOM and LF/CRLF/CR line endings. - Validate and format structured documents while keeping scripts and loose configs raw unless a safe parser exists. - Undo and redo document edits using toolbar buttons or keyboard shortcuts, including held Backspace, formatting and JSON repair. History is bounded and local to the active document, not persisted across file loads or saves. - Inspect hidden Unicode text controls, review deterministic removal/space-normalization proposals, explicitly apply selected changes and undo the last repair. No automatic rewriting of prompt-injection heuristics or ambiguous multilingual characters. - Render Markdown safely and inspect JSON-family/YAML/XML in structured tree previews. - Merge multiple TXT/Markdown files in picker order into a new editable `merged.txt` or `merged.md` document; mixed inputs become Markdown. - Smart-merge JSON/JSONC objects and arrays with conflict reporting and lossless scalar lexemes; concatenate JSONL/NDJSON records. JSON5 smart merge is not supported. - Save directly back to a selected local file in supported browsers, with download as the portable fallback. ## PDF tools - Convert DOCX to PDF locally in WebAssembly and open the result in the PDF workspace. - Export PDF to DOCX locally; current page order and text are preserved while PDF bookmarks become Word Heading 1–6 paragraphs and Word bookmarks. Layout conversion is structure-first rather than pixel-perfect. - Preview PDFs locally. - Merge files and reorder or delete pages. - Inspect, add, edit, move and remove bookmark trees. - Preserve and remap bookmark targets when pages change. - Apply lossless optimization, optional lossy image recompression and Fast Web View. - Rebuild and verify the resulting PDF before it is offered for download. ## Privacy and portability User documents and PDFs are processed locally in the browser. The application has no telemetry and ships a portable single-file build in the Benches rolling release. ## Agent access On browser hosts that implement WebMCP, Doc Bench exposes the current local editor through `read_document`, `set_document_text`, `validate_document`, `format_document`, `inspect_document` and read-only `preview_document_repairs`, plus `undo_document` and `redo_document`. These tools reuse the visible application state. Doc Bench itself does not upload documents, but WebMCP tool results can contain editor text; once returned to a host or model, that data is governed by the host/model data-handling policy. ## Public pages - [Application](https://docbench.travny.workers.dev/index.md): Markdown version of the Doc Bench application page. - [Full LLM guide](https://docbench.travny.workers.dev/llms-full.txt): complete Doc Bench documentation in one file. - [Source](https://github.com/travnie/twojstar/tree/main/benches/docbench): application source and documentation. - [Benches portable release](https://github.com/travnie/twojstar/releases/latest): rolling standalone builds. ## Related TRAVNY tools - [TRAVNY hub](https://travny.pages.dev/): family landing page. - [Streambench](https://streambench.travny.workers.dev/): IPTV, radio, HLS, M3U and XMLTV workshop. - [Codebench](https://codebench.travny.workers.dev/): local QR and barcode studio. - [Weather](https://weather.travny.workers.dev/): local weather ensemble. - [Feeds](https://trvny.github.io/feedseek/): feed directory and generated RSS/Atom feeds. - JSON tools appear for JSON, JSONC, JSON5 and JSONL. Convert locally between them; JSONL maps records to an array. Conversion removes comments and preserves JSON numeric text.