Convert inline CSS elements to classes or external stylesheet

Webpage extractionImage ExtractorLink ExtractorCSS / Stylesheet Extractor► Inline CSS to ClassesKeyword Extractor
SERP specificSERP rank CheckerSERP rank DominationSERP rank Comparison
MiscMultiSearchDuplicate Content FinderConvert / Text Transform
Otherjquery.optionBox pluginA note about browsers
ArticlesScraper with PHP and jqueryHow to parse SERPs in jqueryHow to execute stored PHP

If your webpage contains a lot of inline CSS elements, and you want to clean up the HTML and place the styling in a "real" stylesheet, this is the timesaving tool you need. The usage and functionality is quite simple and straightforward (see example below or read the "manual") :


Inline CSS converter - Select method / "what to convert" and paste an URL or some HTML
What to convert :

A fully qualified URL, eg www.example.com or subdomain.example.com/css-converter.html
 

  


Example

HTML with inline CSS elements :

<div id="table-container" style="width:500px;background-color:#ebebeb;border:1px solid navy;">
  <table id=mytable style="width:100%;border-collapse:collapse;">
    <tr>
      <td style="word-wrap: break-word; background-color:yellow;">
	  Lorem ipsum dolor sit amet
      </td>
      <td style="word-wrap: break-word; background-color:red;">
       consectetur adipisicing elit
      </td>
    </tr>
  </table>
</div>

Is converted to these stylesheet classes :

/* <div id="table-container" style="width:500px;background-#ebebeb;border:1px solid navy;"> */
div#table-container {
   width:500px;
   background-color:#ebebeb;
   border:1px solid navy;
}

/* <table id=mytable style="width:100%;border-collapse:collapse;"> */
table#mytable {
   width:100%;
   border-collapse:collapse;
}

/* <td style="word-wrap: break-word; background-color:yellow;"> */
td.style1 {
   word-wrap: break-word;
   background-color:yellow;
}

/* <td style="word-wrap: break-word; background-color:red;"> */
td.style2 {
   word-wrap: break-word;
   background-color:red;
}

In the example above, you can now insert the generated stylesheet in a <style> ..<style> section, or place it in a external stylesheet by <link rel="stylesheet" type="text/css" href= .. and take the CSS classes in use when it is suitable.