Will & Testament Generator

Last Will & Testament Generator

Last Will & Testament Generator

Draft a standard legal will for personal estate planning.

Disclaimer: This tool generates a basic template based on common law principles. It is not a substitute for legal advice. State laws vary. Review with an attorney.

Your Information (Testator)

Family & Guardianship

Executor Details

The Executor is the person responsible for carrying out the instructions in your will.

In case the primary executor is unable or unwilling to serve.

Distribution of Assets

Leave specific items to specific people. (e.g., "My 1969 Mustang to my brother").

No specific gifts added yet.

Who gets everything else (the "rest, residue, and remainder") after debts and specific gifts are paid?

Residuary Estate: I give, devise, and bequeath all the rest, residue, and remainder of my estate, of whatever kind and wherever situated, to ${data.residuary}.

`; html += `
${getArt()}: SEVERABILITY

If any part of this Will is declared invalid, illegal, or inoperative for any reason, it is my intent that the remaining parts shall be effective and fully operative, and that any Court so interpreting this Will and any provision in it construe in favor of survival.

`; // Signatures html += `

IN WITNESS WHEREOF, I hereby set my hand to this Last Will and Testament on this ______ day of _______________, 20____.

${data.name} (Testator Signature)
WITNESSES

The foregoing instrument was signed, sealed, published, and declared by ${data.name}, the above-named Testator, to be his/her Last Will and Testament in our presence, all being present at the same time, and we, at his/her request and in his/her presence and in the presence of each other, have subscribed our names as witnesses on the date above written.

Witness #1 Signature
Address: _____________________________________________
Witness #2 Signature
Address: _____________________________________________
`; doc.innerHTML = html; } function toRoman(num) { const roman = {M:1000,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}; let str = ''; for (let i of Object.keys(roman)) { let q = Math.floor(num / roman[i]); num -= q * roman[i]; str += i.repeat(q); } return str; } // --- PDF Export --- window.generatePDF = async function() { const btn = document.getElementById('wt-export-pdf'); const originalText = btn.innerHTML; btn.innerHTML = ' Generating...'; const element = document.getElementById('wt-document-render'); try { const canvas = await html2canvas(element, { scale: 2 }); const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF('p', 'mm', 'a4'); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = pdf.internal.pageSize.getHeight(); // Logic to split pages is complex in simple JS, so we scale to fit logic or single page snapshot // For a will, font readability is key. // We will simply print the captured image. Real world apps generate text directly for better pagination. const imgProps = pdf.getImageProperties(imgData); const imgHeight = (imgProps.height * pdfWidth) / imgProps.width; // Basic multi-page handling if image is too long let heightLeft = imgHeight; let position = 0; pdf.addImage(imgData, 'PNG', 0, position, pdfWidth, imgHeight); heightLeft -= pdfHeight; while (heightLeft >= 0) { position = heightLeft - imgHeight; pdf.addPage(); pdf.addImage(imgData, 'PNG', 0, position, pdfWidth, imgHeight); heightLeft -= pdfHeight; } const name = document.getElementById('in-name').value.replace(/ /g, '_') || "Testator"; pdf.save(`Last_Will_${name}.pdf`); } catch (err) { console.error(err); alert("Error generating PDF. Please try again."); } finally { btn.innerHTML = originalText; } }; });
Scroll to Top