100% local processing - your files and data never leave your browser.
No accounts, no tracking - we don't save your credentials, files, or usage.
Free forever - donations are welcomed, but every tool is and always will be free.
Open in spirit - need a special tools..? Drop a message.
FREE TOOL · NO SIGNUP NEEDED

SVG &
PNG TO
.TPL

Convert your logo files into clean, production-ready .tpl template files. Strips inline styles, adds CSS classes, works on every device.

Drop .svg or .png
Strips Inline Styles
Automatically removes all style="" attributes from SVG files. Prevents layout breakage in your templates and CMS.
Mobile-Safe PNG Output
PNG logos are output as plain <img> tags - not base64 SVG embeds that break on mobile browsers and template engines.
100% Private
Everything runs in your browser. Your files never leave your device. No uploads, no servers, no tracking.
Class Injection
Automatically adds svg-icon and your custom class name cleanly onto the SVG tag.
Auto Size Detection
Upload a PNG and the tool auto-detects its real pixel dimensions. Scale it proportionally with a slider.
Copy or Download
One-click copy to clipboard or download as a .tpl file. Preview before you use it.

CONVERT YOUR LOGO

Upload an SVG or PNG file. Configure options. Get a clean .tpl file ready to drop into your template.

tpl-converter.php · ready LIVE

1 - Upload File

Drag & drop or tap to browse
.svg · .png - files never leave your browser
SVG

2 - Cleanup Options


3 - Class Name

Custom class

2 - Output Format

✓ <img> tag renders on all devices including mobile.

3 - Classes

Custom class

4 - Size

Width px
Height px
Scale from original25%

Output

Upload a file to see
your .tpl output here
✓ Clean .tpl
Copied to clipboard!

HOW IT WORKS

Three steps to a clean, production-ready .tpl logo file. No server. No account. No fuss.

01
Upload your file
Drag and drop or browse for your SVG or PNG logo. The file is read entirely in your browser.
02
Configure the output
Choose CSS classes, strip inline styles, set image dimensions, pick <img> or SVG embed for PNGs.
03
Copy or download your .tpl
One click to copy the clean code or download a .tpl file. Preview shows how it will render.

COMMON QUESTIONS

A .tpl file is a template partial - typically used in theme systems, CMS platforms, and e-commerce frameworks to store reusable HTML snippets like logos, icons, and UI components.

Template engines often inject SVGs into pages where inline style="" attributes can conflict with or override your site's CSS, causing layout shifts.

SVG <image> tags with base64 data can be very large and fail on mobile or get stripped by template engines. A plain <img> is universally supported.

No. 100% of the file processing happens in your browser using JavaScript's FileReader API. Only an anonymous conversion count is tracked (no file data).