Remove Metadata & Comments from Word, Excel, PowerPoint
Find and remove what leaks from DOCX / XLSX / PPTX before sending: author, comments, tracked changes, hidden sheets, speaker notes, links, photo GPS.
Result
Press “Run” to see the result.
Upload a Word, Excel or PowerPoint file (.docx / .xlsx / .pptx, macro-enabled variants too). action=inspect (default) reports what the recipient could see: author, last editor, company, manager, template path, editing time, custom properties, comments and their authors, tracked insertions / deletions (deleted text stays readable), hidden text, hidden sheets / rows / columns, hidden slides, speaker notes, links to other workbooks, the folder a workbook was saved in, attached template, revision ids (rsid), printer settings, VBA macros, embedded objects and pictures with EXIF / GPS. Each finding comes with a level (high / medium / low) and an English + Vietnamese message.
action=clean returns a cleaned copy: properties cleared (creation and modification dates kept; keep_title=1 keeps the title), custom properties removed, comments removed, tracked changes accepted (insertions kept, deletions and moved-from text dropped, deleted table rows removed, formatting changes accepted), speaker notes removed, links to other workbooks removed with their formulas frozen to the last values, attached template, absolute paths, rsids, printer settings and picture metadata removed, macros removed on request. Hidden sheets: hidden_sheets=keep (default), unhide or remove (formulas that used them keep their last values). Every step can be switched off (comments=0, accept_changes=0…).
Only the affected XML parts are rewritten; the rest of the package is copied unchanged and the result is re-checked (relationships, content types). The visible content does not change except for the options you choose. format=json returns the report and the file as base64. Files are processed in memory and never stored.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/office-clean" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@./my-file"const form = new FormData();
form.append('file', fileInput.files[0]);
const res = await fetch('https://apibox.io.vn/v1/office-clean', {
method: 'POST',
headers: { Authorization: 'Bearer YOUR_API_KEY' },
body: form,
});
console.log(await res.json());import requests
res = requests.post(
"https://apibox.io.vn/v1/office-clean",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"file": open("my-file", "rb")},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/office-clean');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
CURLOPT_POSTFIELDS => ['file' => new CURLFile('my-file')],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Will the document look different?
No, only hidden information is removed. Accepting tracked changes gives the same text as "Accept all changes" in Word; hidden sheets stay unless you choose unhide or remove.
Does it work with .doc or .xls files?
No, only Open XML files (.docx, .xlsx, .pptx and the macro-enabled .docm, .xlsm, .pptm). Save legacy files in the new format first.
What is not removed?
The content of embedded files (e.g. an Excel table inside Word), hidden text runs, hidden rows / columns and custom XML parts are reported but kept, because removing them changes the document.