Web Tools

Embeddable Document Converter Widget

Add a free, privacy-first document converter to your website with a single line of HTML.

Overview

The Document Converter widget runs entirely in the browser. No files are uploaded to any server — all processing happens client-side using JavaScript libraries loaded on demand. You can embed it on any website via an <iframe>.

Quick Start

Copy and paste this into your HTML:

<iframe
  src="https://tools.knws.co.uk/embed/document-converter"
  width="100%"
  height="500"
  style="border:1px solid #e2e8f0;border-radius:8px;"
  allow="clipboard-write"
></iframe>

Configuration

Customize the widget using URL parameters:

Parameter Values Description
theme light | dark Widget colour scheme (default: light)
formats Comma-separated list, e.g. docx,pdf,xlsx Restrict accepted input formats
accent URL-encoded colour, e.g. %23ff6600 Custom accent/button colour

Example with options

<iframe
  src="https://tools.knws.co.uk/embed/document-converter?theme=dark&formats=docx,pdf&accent=%233b82f6"
  width="100%"
  height="500"
  style="border:1px solid #334155;border-radius:8px;"
  allow="clipboard-write"
></iframe>

Supported Conversions

Input Format Output Formats
DOCXHTML, TXT
XLSXCSV, TSV, ODS, HTML, JSON
CSVXLSX, ODS, JSON, HTML
ODSXLSX, CSV, JSON
TSVXLSX, CSV, JSON
HTMLPDF
PDFTXT

Live Preview

Try the widget right here:

Privacy & Security

  • No file uploads — all conversion happens in the user's browser.
  • No server processing — the widget loads JavaScript libraries from CDNs and runs entirely client-side.
  • No tracking — the widget does not set cookies or send analytics.
  • CDN libraries used: Mammoth.js (DOCX), SheetJS (spreadsheets), jsPDF (PDF generation), PDF.js (PDF reading). Each is loaded on-demand only when needed.