Preview:
javascript:(function() {  document.querySelector('input:focus').value=document.querySelector('input:focus').value.replace(/(\d{3})(\d{3})(\d{4})/,(m,p1,p2,p3)=>'('+p1+') '+p2+'-'+p3);})();
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter