# Creating .vtk from .bin file

**URL:** https://discourse.vtk.org/t/creating-vtk-from-bin-file/7724
**Category:** Support
**Tags:** file-formats
**Created:** [January 27, 2022, 9:12am UTC](https://discourse.vtk.org/t/creating-vtk-from-bin-file/7724 "2022-01-27T09:12:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![daria](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@daria](https://discourse.vtk.org/u/daria)
#### Post date: [January 27, 2022, 9:12am UTC](https://discourse.vtk.org/t/creating-vtk-from-bin-file/7724/1 "2022-01-27T09:12:22Z")

</div>

Hi! I am new with .vtk and I am little bit meshed. I am using js, just need to convert my file to .vtk in order to add in my viewer based on THREE.js.  
So, my question: I have some binary file, which I can parse to ArrayBuffer. How after that can I create .vtk with polydata (ASCII)? What should I use? Thanks!

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [January 27, 2022, 3:18pm UTC](https://discourse.vtk.org/t/creating-vtk-from-bin-file/7724/2 "2022-01-27T15:18:16Z")

</div>

Are you asking for the [file format](https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf)?

---

<div class="post-metadata">

### Author: ![daria](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@daria](https://discourse.vtk.org/u/daria)
#### Post date: [January 27, 2022, 3:20pm UTC](https://discourse.vtk.org/t/creating-vtk-from-bin-file/7724/3 "2022-01-27T15:20:48Z")

</div>

yep
