Click Edit on a document, a spreadsheet, a text file or code, and change it in the browser. Drafts are saved as you type, and every save is a new version you can go back to. The help center explains it: edit spreadsheets and documents in the browser.
Edit documents and spreadsheets in the browser
Edit documents, spreadsheets, text and code without downloading them, with drafts saved as you type.