GrabzIt
Tools to Capture and Convert the Web

Convert HTML and URL's to Word with GrabzItHTML to Word API

GrabzIt's DOCX API makes it easy to convert HTML and web pages into Microsoft Word documents. This HTML to DOCX and URL to DOCX service uses a browser to render the HTML first as a web page, which helps to generate more accurate conversions when creating the Word documents.

As you can see in the demo, the HTML to DOCX API will allow a developer to convert any HTML into an editable word document. Of course, HTML is not directly equivalent to DOCX as some features of HTML, such as background images, do not translate well into a Word document. To overcome these problems there are additional options to restrict what features are converted into a DOCX.

Why would you want to create Word documents over something like PDF? The main advantages is that DOCX is both an open format and can be easily edited, which is a common requirement in many applications. One such example would be to create a report or invoice template for the user to edit.

After testing the rendering of our URL to DOCX and HTML to DOCX services, we are confident that we provide the best DOCX conversions available today.

HTML to DOCX API

Use GrabzIt's HTML to DOCX functionality to add the ability to convert HTML snippets to your application.

The demo code below demonstrates how simple it is to create a Word document from HTML using any ASP.NET language such as C#, which is shown below. To start converting HTML to DOCX just follow these instructions to start using the a ASP.NET Demo application.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.HTMLToDOCX("<html><body><h1>Hello World!</h1></body></html>"); 
grabzIt.SaveTo("documents/result.docx");

The demo code below demonstrates how simple it is to create a Word document from HTML using Java. To start converting HTML to DOCX just follow these instructions to start using the a Java Demo application.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.HTMLToDOCX("<html><body><h1>Hello World!</h1></body></html>"); 
grabzIt.SaveTo("documents/result.docx");

The demo code below demonstrates how simple it is to create a Word document from HTML using JavaScript. To start creating DOCX documents first download GrabzIt's JavaScript Library. Then get your Application Key and Secret, add the domain you want to use the JavaScript on and then check out the screenshot API documentation for JavaScript to find out all the ways you can use GrabzIt's API.

<script src="grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertHTML("<html><body><h1>Hello World!</h1></body></html>",
{"format": "pdf"}).Create();
</script>

The demo code below demonstrates how simple it is to create a Word document from HTML using Node.js. To start converting HTML to DOCX just follow these instructions to start using the a Node.js Demo application.

var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.html_to_docx("<html><body><h1>Hello World!</h1></body></html>");
client.save_to("documents/result.docx");

The demo code below demonstrates how simple it is to create a Word document from HTML using Perl. To start converting HTML to DOCX just follow these instructions to start using the a Perl Demo application.

#!/usr/bin/perl

use GrabzItClient;

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->HTMLToDOCX("<html><body><h1>Hello World!</h1></body></html>");
$grabzIt->SaveTo("documents/result.docx");

The demo code below demonstrates how simple it is to create a Word document from HTML using PHP. To start converting HTML to DOCX just follow these instructions to start using the a PHP Demo application.

include("GrabzItClient.class.php");

$grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->HTMLToDOCX("<html><body><h1>Hello World!</h1></body></html>"); 
$grabzIt->SaveTo("documents/result.docx");

The demo code below demonstrates how simple it is to create a Word document from HTML using Python. To start converting HTML to DOCX just follow these instructions to start using the a Python Demo application.

import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.HTMLToDOCX("<html><body><h1>Hello World!</h1></body></html>") 
grabzIt.SaveTo("documents/result.docx") 

The demo code below demonstrates how simple it is to create a Word document from HTML using Ruby. To start converting HTML to DOCX just follow these instructions to start using the a Ruby Demo application.

require 'grabzit'

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzItClient.html_to_docx("<html><body><h1>Hello World!</h1></body></html>")	
grabzItClient.save_to("documents/result.docx") 	

URL to DOCX API

If you need to convert a web page to DOCX then GrabzIt's URL to DOCX API is what you need. This API will convert any webpage to DOCX using our network of globally positioned servers to generate Word documents as quickly as possible.

It is also easy to create a Word document from a webpage using our ASP.NET API. Just specify the URL you want to convert, as shown in the C# example below. To start converting URL's to DOCX just follow these instructions to start using the a ASP.NET Demo application.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToDOCX("http://www.google.com"); 
grabzIt.SaveTo("documents/result.docx");

It is also easy to create a Word document from a webpage using our Java API, just specify the URL you want to convert, as shown below. To start converting URL's to DOCX just follow these instructions to start using the a Java Demo application.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToDOCX("http://www.google.com"); 
grabzIt.SaveTo("documents/result.docx");

It is also easy to create a Word document from a webpage using our JavaScript API, just specify the URL you want to convert, as shown below. To start creating DOCX documents download GrabzIt's JavaScript Library. Then get your Application Key and Secret, add the domain you want to use the JavaScript on and then check out the screenshot API documentation for JavaScript to find out all the ways you can use GrabzIt's API.

<script src="grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.google.com",
{"format": "docx"}).Create();
</script>

It is also easy to create a Word document from a webpage using our Node.js API, just specify the URL you want to convert, as shown below. To start converting URL's to DOCX just follow these instructions to start using the a Node.js Demo application.

var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.url_to_docx("http://www.google.com");
client.save_to("documents/result.docx");

It is also easy to create a Word document from a webpage using our Perl API, just specify the URL you want to convert, as shown below. To start converting URL's to DOCX just follow these instructions to start using the a Perl Demo application.

#!/usr/bin/perl

use GrabzItClient;

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToDOCX("http://www.google.com");
$grabzIt->SaveTo("documents/result.docx");

It is also easy to create a Word document from a webpage using our PHP API, just specify the URL you want to convert, as shown below. To start converting URL's to DOCX just follow these instructions to start using the a PHP Demo application.

include("GrabzItClient.class.php");

$grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToDOCX("http://www.google.com"); 
$grabzIt->SaveTo("documents/result.docx");

It is also easy to create a Word document from a webpage using our Python API, just specify the URL you want to convert, as shown below. To start converting URL's to DOCX just follow these instructions to start using the a Python Demo application.

import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.URLToDOCX("http://www.google.com") 
grabzIt.SaveTo("documents/result.docx") 

It is also easy to create a Word document from a webpage using our Ruby API, just specify the URL you want to convert, as shown below. To start converting URL's to DOCX just follow these instructions to start using the a Ruby Demo application.

require 'grabzit'

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzItClient.url_to_docx("http://www.google.com")	
grabzItClient.save_to("documents/result.docx") 	
Try all our premium features for free with a 7 day free trial. Then from $5.99 a month, unless cancelled.
  • More Captures
  • More Features
  • More API's
  • Bigger Scrapes
  • Bigger Screenshots
  • Bigger Everything
Start Free Trial