Identify the wrapper your project actually needs
W3C publishes separate WOFF and WOFF2 specifications. Confirm the requested format and start with an original file you may convert. In a website project, the webfont filename, CSS source URL and declared format should agree. Keep the desktop resource for editing.
Use a documented WOFF2 conversion command
With the required fontTools dependencies available, try fonttools ttLib.woff2 compress Example.ttf -o Example.woff2. Use the documented decompress subcommand for the reverse operation. Let the converter choose an appropriate output extension unless you know the outline flavor. A WOFF2 can wrap a TrueType or CFF-flavored font.
Proof the web font against the original
Load the converted file in a small example and compare the same letters, accents and styles with the original. Record which file is used in the website. Read the webfont kit guide for CSS paths and the homepage text preview for a separate copyable text comparison.
Your questions, answered.
Does renaming a TTF to WOFF2 convert it?
Use an actual converter. The extension does not change the data stored in the file.
Can every WOFF2 be restored as a TTF?
Check its outline flavor. Decompression restores an OpenType resource in the corresponding flavor.
Sources & background
Sources supporting this page’s explanations. Practical examples are our editorial suggestions.