# Export blockly code into some text file

**URL:** https://forum.makecode.com/t/export-blockly-code-into-some-text-file/4559
**Category:** PXT
**Created:** [November 22, 2020, 6:23am UTC](https://forum.makecode.com/t/export-blockly-code-into-some-text-file/4559 "2020-11-22T06:23:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![khayliang](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/khayliang/32/2437_2.png) [@khayliang](https://forum.makecode.com/u/khayliang)
#### Post date: [November 22, 2020, 6:23am UTC](https://forum.makecode.com/t/export-blockly-code-into-some-text-file/4559/1 "2020-11-22T06:23:32Z")

</div>

Hi, I’m planning a project where I need to be able to export code written in blockly code into some readable format and send it to a server, where I’d then process and run it there. I’ve looked through the docs, and can’t seem to find an API that can do that. May I know if this is possible, and how can I proceed?
