Live Demo This project allows users to generate Word documents dynamically based on placeholders in a DOCX template. It runs entirely in the browser using easy-template-x, requiring no server-side processing.
- Upload a DOCX template with placeholders
- Upload or manually enter JSON data to fill placeholders
- Generate a processed DOCX file with replaced values
- Extract placeholders from the template for reference
- Upload a DOCX template with placeholders (
{{placeholder}}). - Provide JSON data via file upload or manual input.
- Click 'Generate DOCX' to create a new document with values inserted.
- Click 'Extract DOCX' to retrieve placeholders used in the template.
- JavaScript (Frontend processing)
- easy-template-x (DOCX template handling)
- HTML & CSS (User interface)
Simply open index.html in a browser and start using it—no setup required!
index.html– UI for uploading templates and generating DOCXscript.js– Handles template processing and file generationstyles.css– Basic styling for the interface
Try uploading a DOCX template with placeholders and a JSON file with matching keys to see it in action!
- File Upload – Upload DOCX template and JSON data
- Text Area – Manual JSON input
- Buttons – Generate and Extract DOCX files
- Display Section – Shows extracted placeholders
This project is open-source. Feel free to use and modify it as needed.