Online Defer Inline Javascript

Defer and Async scripts makes your pagespeed score increase as they do not block rendering of the page. Async is the best, but not all the pages are compliant to async script requests, especially mostly for older web templates. You may defer your code for that reason. But this time, inline scripts may break your site functionality. This tool makes inline javascripts compliant to defering.

You can defer (or async) your inline javascripts and make them non render blocking with this tool. Paste your code, process and click copy button to copy outputs to your clipboard.

Example;
console.log('test');

will be converted to

<script defer src="data:text/javascript;base64,Y29uc29sZS5sb2coJ3Rlc3QnKTs="></script>

You may replace defer with async if you want to.