Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

So if Microsoft Word uses .docx (formerly .doc), what 'format' is a Google document in?

How does it all work? Does it just use the HTML standard to make up the document on the page you're working on? (And if so what HTML revision is it using - at least currently?)

Thanks.

share|improve this question
    
Currently as in June 2013? –  pnuts Jun 6 at 3:52
1  
I can't remember why I said 'currently' - but either way I guess the answer should always pertain to 'as of now' and be always updated where possible. –  foregon Jun 6 at 7:45

2 Answers 2

up vote 2 down vote accepted

Google uses a proprietary format called “kix”, which was introduced with the then new editor a few years ago. The basic structure of a kix file isn't comparable to structured markup (like docx which is basically a zipped collection of XML files holding content and styles) but rather like a data file which starts with the textual content followed by styling information delimited by ASCII control codes.

What you see in your editor is the HTML-rendered content provided by the underlying JavaScript. If you want to work with the document in another application you are able to access the files via the Google Drive API, as John already pointed you to. Although it’s technically possible yet undocumented to export the kix file, this is due to the proprietary format of not so much use.

share|improve this answer
3  
Good stuff, but can you cite a source? –  Al E. Jul 19 at 16:41
1  
That's based on my own discoveries while working with the Drive API. You can explore the kix format of any Google Document while being logged in with this link https://docs.google.com/feeds/download/documents/export/Export?id=[your document's id goes here]&exportFormat=kix –  Nicolas Zimmer Jul 19 at 17:42
    
Fantastic knowledge, thank you for sharing your information! :D –  foregon Jul 19 at 21:39

Google hasn't made it publicly known what format they store Google Docs in at this time. The closest I can find to anything official is this post:

We do not expose our native formats at this time

Google Docs supports importing and exporting in a range of formats (including docx, odt, pdf and html), however they convert going each way to their internal format.

The Google Docs editor does use HTML and is driven by Javascript, you can read about it in this blog post.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.