BytesPDF tools for your website
Offer Compress PDF, Merge PDF and Split PDF inside your website. Free, no account, no ads. Files are processed on the visitor’s device, not uploaded to BytesPDF. Keep the visible “Powered by BytesPDF — free PDF tools” link in exchange.
The isolated tool frame has no analytics, trackers, fingerprinting, or cookies. The host website may have its own tracking outside the frame. Loading the tool downloads code from BytesPDF; file bytes stay local. Verify our privacy claims.
Configure your tool
Targets are best effort, never a guaranteed size. Leave blank for compression levels.
Live preview
Upload Helper — for your existing form
Offer optional local compression next to a single PDF file field. The helper runs in your page’s context, not inside the tool iframe: your file is never sent to BytesPDF. The host website controls its own upload flow.
Leave blank for recommended compression. Targets are best effort; 1 KB means 1024 bytes. Check whether your server uses decimal limits.
Live form demo (does not submit)
Install and limits
Paste the div and script into your HTML. Include the loader once per page; multiple tool containers are supported. The loader creates the isolated iframe only near the viewport. A real tool link remains available if scripts are blocked or the frame cannot load. Test your published page: some editors strip scripts entirely.
Session guidance: 150 MB combined on desktop, 50 MB on mobile. Merge supports up to 20 PDFs on desktop or 10 on mobile. Compress supports up to 10 PDFs on desktop or 5 on mobile. Split takes one PDF, with at most 200 outputs. Memory availability can impose lower limits. Cancel stops workers; originals are never overwritten. Check downloads before sharing.
Options and security
Use data-bytespdf-tool with compress, merge or split; data-theme with light or dark; and optionally data-target-kb for a positive integer compression target in KB. Unknown tools are ignored. Targets are best effort, not a promise. No option hides attribution.
On hosts with Content Security Policy, permit https://bytespdf.com in script-src and frame-src. If your policy uses nonces or strict-dynamic, approve the loader through your own nonce policy. Host download sandboxing must permit downloads. Tool processing needs workers, blobs and WebAssembly inside the frame; the frame supplies its own restrictive CSP. It does not need your page’s file permissions.
Resize messages contain only a version and bounded height, never files. The loader validates both sender origin and the exact iframe window; the frame validates its parent before responding. Options use allowlists and numeric validation, never eval. Do not rehost modified runtime files or wrap the frame in a sandbox that blocks scripts or downloads.
Terms and version policy
Free use requires the visible, working, dofollow attribution link. Do not conceal, crop, overlay or remove it. No warranty: processing may fail or alter PDF features; visitors should keep originals and review results. No account or payment is required. BytesPDF serves runtime updates.
Version policy: /embed/v1.js receives compatible fixes; breaking configuration changes use a new major URL.
Upload Helper integration and privacy
Add data-bytespdf-upload to an existing, single-file PDF input inside your form, then include /embed/upload-helper.v1.js once with defer. Keep your own input id, name, required, labels, validation and form action. data-max-kb is an optional positive integer target (maximum 153600 desktop / 51200 mobile); invalid options use recommended compression. Multiple independent single-file fields are supported; multi-file inputs are intentionally skipped. Fields must exist when the deferred script runs. No setting removes attribution.
Visitors explicitly choose Compress a copy, download and review it, then Use smaller file. Supported browsers replace only that field using File/DataTransfer and emit normal input/change events. Restore original reverses that choice. Otherwise visitors download and manually select the copy. No smaller result, signed/protected PDF errors, cancellation, engine timeout, offline mode or blocked scripts leave the original field usable. Submission is never intercepted or delayed; submitting while compression runs sends the currently selected file, not the pending copy.
The helper is not a security boundary: it runs in your host page, which already has access to the file input. Do not use it unchanged with an uploader that immediately uploads on change: the original may already have left for your server before compression. Integrate and test your framework’s state and validation explicitly. Your server must still validate file type and actual byte size; best-effort compression does not guarantee acceptance.
Host CSP: allow https://bytespdf.com in script-src and connect-src, blob: in worker-src, and WebAssembly via script-src 'wasm-unsafe-eval' where supported. Approve the script via your nonce policy if required. No unsafe-eval is required. The helper fetches a public, CORS-enabled engine with credentials omitted, then runs the bundled main compressor and WASM in a host-origin Blob worker without file-bearing requests. No cookies, analytics, adoption counters or file metadata are sent to BytesPDF by the helper. If any permission is unavailable, the original form continues normally. Mobile limit: 50 MB; desktop: 150 MB; one PDF per field/run.
Version policy: /embed/upload-helper.v1.js receives compatible fixes; breaking integration changes use a new major URL. Runtime code updates are served by BytesPDF. Free use requires visible dofollow attribution, no ads or account; the same no-warranty and original-file review terms apply.
Cannot run scripts?
Use a compact link or badge instead. These open BytesPDF rather than embedding a working tool.
Plain link
<a href="https://bytespdf.com/compress-pdf">Compress PDF — BytesPDF</a>
Compact badge link
<a href="https://bytespdf.com/"><img src="https://bytespdf.com/bytespdf-badge.svg" alt="Free PDF tools by BytesPDF" width="200" height="54"></a>