Resource Hint Generator
Build preload, preconnect, and DNS-prefetch tags from URLs you enter, then copy the markup for your page.
- Free
- Works Offline
- No Uploads
How to Generate Resource Hints
- Open the HTML, review Security Check, then select Continue.
- Add a URL and choose a resource hint, or select Open Sample.
- For preload, select the destination and match the credential mode used by the page.
- Select Generate Tags, then choose Copy Tags or Download TXT. Paste reviewed tags into your page head.
Choose a Hint for Each URL
- Use this local preload preconnect generator to write tags for resources your page expects to use.
- The free preload preconnect generator keeps the preload destination and selected crossorigin mode.
- The preload preconnect generator tool reports duplicate tags and keeps the order of the first occurrence.
Formats and Compatibility
| Input | Enter HTTP(S) origins for connection hints, or an HTTP(S) URL or relative resource path for preload. You can also open a UTF-8 hint-list JSON file. |
|---|---|
| Output | Copyable HTML link tags and a UTF-8 text download. |
| Browser | A modern browser with local file support. |
| Scope | Generate HTML source text for preload, preconnect and DNS-prefetch. Match the selected preload destination and credential mode. |
| Operating Systems |
Local Processing Without Uploads
Use the preload preconnect generator without uploading files. The browser-based workflow validates local input with no upload and no resource requests.
Select Open Sample to see the workflow with the included example.
Preload, Preconnect and DNS-Prefetch
Use preload for an important resource required by the current page, preconnect for an origin the page will contact soon, or DNS-prefetch for an origin that only warrants early DNS resolution.
Review Your Link Tags
The preload preconnect generator download includes the offline workbench. The sample emits a font preload and one preconnect.
Frequently Asked Questions
Can I use the preload preconnect generator offline?
Yes. Extract the Tool ZIP, open ResourceHintGenerator.html, and enter your URLs locally.
How do I use the preload preconnect generator in browser mode?
Add explicit URLs, choose hint types and generate the tags. Use Copy Tags or Download TXT.
Can I use this preload preconnect generator for HTML files?
Yes. Copy the reviewed link tags into the head of the HTML file you are preparing. The tool accepts URL entries and hint-list JSON.
Which hint should I choose?
Preload an important resource the current page uses soon. Preconnect to an origin you expect the page to use soon. Use DNS-prefetch when resolving the host is enough. Limit hints to resources likely to be used.
How should I set crossorigin for a preload?
Choose the same credential mode the page uses to fetch the resource. Fonts typically use anonymous. Use credentials only when the consuming request uses them.
Does this tool work offline on Windows, macOS, Linux, and ChromeOS?
Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.
Which browsers can I use with this offline tool?
Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.