Convert Html

About HTML File Format

HTML (Hyper Text Markup Language) is the extension for web pages created for display in browsers. Known as language of the web, HTML has evolved with requirements of new information requirements to be displayed as part of web pages. The latest variant is known as HTML 5 that gives a lot of flexibility for working with the language. HTML pages are either received from server, where these are hosted, or can be loaded from local system as well.

Convert from HTML

With GroupDocs.Conversion you can easily convert your HTML document into another file format.
For example HTML to PDF conversion code snippet will look like this:

// Load the source HTML file
using (Converter converter = new Converter("sample.html"))
{
    // Set the convert options for PDF format
    PdfConvertOptions options = new PdfConvertOptions();
    // Convert to PDF format
    converter.Convert("converted.pdf", options);
}

Put it simply - you just load a HTML file into Converter, select desired output format and all the rest will be done by GroupDocs.Conversion.

Convert to HTML

On the other hand, converting your files to HTML format is also quite simple and natural. The following code sample demonstrates how to convert PDF document to HTML in C# using GroupDocs.Conversion.

// Load the source PDF file
using (Converter converter = new Converter("sample.pdf"))
{
    // Set the convert options for HTML format
    var options = new MarkupConvertOptions();
    // Convert to HTML format
    converter.Convert("converted.html", options);
}

For more detailed code examples of how to convert various file formats to HTML please check articles provided below.

Convert AI to HTMLConvert BMP to HTMLConvert CDR to HTMLConvert CF2 to HTML
Convert CGM to HTMLConvert CMX to HTMLConvert CSV to HTMLConvert DCM to HTML
Convert DGN to HTMLConvert DIB to HTMLConvert DJVU to HTMLConvert DNG to HTML
Convert DOC to HTMLConvert DOCM to HTMLConvert DOCX to HTMLConvert DOT to HTML
Convert DOTM to HTMLConvert DOTX to HTMLConvert DWF to HTMLConvert DWFX to HTML
Convert DWG to HTMLConvert DWT to HTMLConvert DXF to HTMLConvert EMF to HTML
Convert EML to HTMLConvert EMLX to HTMLConvert EMZ to HTMLConvert EPS to HTML
Convert EPUB to HTMLConvert FODP to HTMLConvert FODS to HTMLConvert GIF to HTML
Convert ICO to HTMLConvert IFC to HTMLConvert IGS to HTMLConvert J2C to HTML
Convert J2K to HTMLConvert JLS to HTMLConvert JP2 to HTMLConvert JPC to HTML
Convert JPEG to HTMLConvert JPF to HTMLConvert JPG to HTMLConvert JPM to HTML
Convert JPX to HTMLConvert LOG to HTMLConvert MBOX to HTMLConvert MD to HTML
Convert MHT to HTMLConvert MHTML to HTMLConvert MOBI to HTMLConvert MPP to HTML
Convert MPT to HTMLConvert MPX to HTMLConvert MSG to HTMLConvert ODG to HTML
Convert ODP to HTMLConvert ODS to HTMLConvert ODT to HTMLConvert ONE to HTML
Convert OST to HTMLConvert OTG to HTMLConvert OTP to HTMLConvert OTS to HTML
Convert OTT to HTMLConvert OXPS to HTMLConvert PCL to HTMLConvert PDF to HTML
Convert PLT to HTMLConvert PNG to HTMLConvert POT to HTMLConvert POTM to HTML
Convert POTX to HTMLConvert PPS to HTMLConvert PPSM to HTMLConvert PPSX to HTML
Convert PPT to HTMLConvert PPTM to HTMLConvert PPTX to HTMLConvert PS to HTML
Convert PSD to HTMLConvert PST to HTMLConvert RTF to HTMLConvert STL to HTML
Convert SVG to HTMLConvert SVGZ to HTMLConvert SXC to HTMLConvert TEX to HTML
Convert TIF to HTMLConvert TIFF to HTMLConvert TXT to HTMLConvert VCF to HTML
Convert VDW to HTMLConvert VDX to HTMLConvert VSD to HTMLConvert VSDM to HTML
Convert VSDX to HTMLConvert VSS to HTMLConvert VSSM to HTMLConvert VSSX to HTML
Convert VST to HTMLConvert VSTM to HTMLConvert VSTX to HTMLConvert VSX to HTML
Convert VTX to HTMLConvert WEBP to HTMLConvert WMF to HTMLConvert WMZ to HTML
Convert XLAM to HTMLConvert XLS to HTMLConvert XLSB to HTMLConvert XLSM to HTML
Convert XLSX to HTMLConvert XLT to HTMLConvert XLTM to HTMLConvert XLTX to HTML
Convert XML to HTMLConvert XPS to HTML