---
title: "Template best practices"
description: "Tips and tricks for creating templates that maintain consistent layout and alignment, with predictable content flow and positioning."
canonical_url: "https://resources.docmosis.com/template-tutorials/template-best-practices"
last_reviewed: 2026-06-08
---
# Template best practices
Creating high\-quality templates is essential for generating well\-structured documents.
This tutorial explores the use of tables, paragraph properties and other template editor features to ensure that, as content is added or moved, the template always works in a predictable manner.
## Template creation
> **BEST PRACTICE**: Use desktop software to create templates and not file conversion tools.
### Manual creation results in the best quality templates
Build templates from scratch using a recent version of desktop software: Microsoft Word or LibreOffice Writer.
If starting from an existing DOCX or ODT file, run a test render with Docmosis and check that quality of the that file results in the desired layout and formatting.
Don’t use older format Word DOC files. Instead open it in Word and use Save As to convert it to the newer DOCX format.
### File conversion results in poor\-quality templates
Converting files using online tools, eg: convert a PDF to a DOCX, almost always leads to poor quality files that are unsuitable for automated document generation.
These tools often use OCR\-style techniques that break up the content into floating text boxes. During document generation, when data is injected and content is added or removed, these floating elements often result in layout issues, unpredictable formatting, and broken structure.
## Template editing
> **BEST PRACTICE**: Use the template editor features to visualize the template structure.
### Enable hidden characters
Enabling the display of "hidden" characters is highly recommended when working on templates.
This feature reveals special symbols for content you can't usually see, such as: spaces; tabs; paragraph markers; page/section breaks; and other structural elements, making it possible to understand how the template is structured.
To show or hide these hidden characters, click on the ¶ in the top ribbon:
### View table gridlines
Using the Table Layout \> View Gridlines feature displays the table structure as fine dashed lines in the template.
For the table example below, the borders are set to "No Border" however the cell boundaries are still visible in the template.
These dashed lines will not appear in the generated document, they just assist with visualizing the table structure in the editor.
## Aligning content
> **BEST PRACTICE**: Use tables to control the alignment of related pieces of information.
### Avoid using white\-space to align content
Using multiple consecutive white\-space characters, such as lots of spaces or tabs, to align content, can lead to alignment issues when dynamic data is inserted in to the generated document.
In the example template, the \<\