This tool finds top and bottom footnotes using the regex provided, and replaces them with WET-valid footnotes that are numbered using an internal counter.

HTML file:

(Optional) Enter which line to start checking footnotes from (starting at line 1):

(Optional) Enter which line to stop checking footnotes at (starting at line 1): 

Initial string for footnote IDs - you should only change this if you have multiple sets of footnotes in a document, such as for tables, as doing so will break some of the WET footnote module's functionality. If you do change this, I recommend constructing footnote ids out of numbers, letters, and regular dashes "-", e.g. "fnb-tbl1" for footnotes in table 1, as this is what is assumed by the tool's default regex statements.


Regex for top footnote locations:





Group containing content (for regex replacements):




(Optional) Duplicate top footnotes - format as so (make sure they're in order of appearance from the top):
[top footnote location],[bottom footnote location];[top footnote location],[bottom footnote location];...
where the top footnote marker points to the paired bottom footnote, instead of the bottom footnote at the same position from the beginning of the document. Indexing starts at 1.
e.g. 4,3;5,3;10,1
So the 4th footnote found in the main body would point to the 3rd footnote in the bottom section and so on.


Output footnote language:







Detailed step-by-step:

  1. Upload the HTML file containing the footnotes you would like to format.
  2. If you are only formatting footnotes for a subset of lines in the document, e.g. the lines of a table, enter the starting and ending line to format footnotes on. If you are formatting footnotes across the entire document, then you can ignore this.
  3. Only change the initial footnote ID substring if needed.
  4. Select the regex search string for the current top footnote locations in the HTML document.
  5. In the same way, select the regex search string for the current bottom footnotes in the HTML document, along with the regex replacement group for the footnote's content.
  6. Enter the locations of the duplicate top footnotes (when multiple top footnotes reference the same bottom footnote) in the format described. If you don't have any duplicate references, then you can ignore this.
  7. Select the language the output WET-formatted footnotes should be in.

Make sure all instances of the bottom footnotes come after the top footnotes in your html document, since the entire document is being treated as a single string.

The number of top and bottom footnotes found using the regex statements should be the same unless you have duplicate footnotes. The number of bottom and top footnotes this tool finds is printed in the console (ctrl+shift+i).

More in-depth information can be found in the readme.