# Is their possibility I can create offline html

**URL:** <https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552>\
**Category:** Help & Support\
**Created:** [February 4, 2023, 8:08am UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552 "2023-02-04T08:08:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [February 4, 2023, 8:09am UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/1 "2023-02-04T08:09:00Z")

</div>

Is their possibility I can create offline html

Here is the html file

it is completely offline ,so is there any possibility that we can create something like this without having any internet connection

> **[Lift.html](https://drive.google.com/file/d/19sqt3rjYPAtSreYvh5EZEsuyYeyj0pZm/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [February 4, 2023, 10:56am UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/2 "2023-02-04T10:56:28Z")

</div>

here’s an example  
[index.zip](https://forum.playcanvas.com/uploads/short-url/oJWF3I8abgu3kUZI3kHIiFJLSfu.zip) (908 Bytes)

---

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [February 4, 2023, 1:06pm UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/3 "2023-02-04T13:06:33Z")

</div>

This is awesome ,now the thing is how to do it

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [February 5, 2023, 10:43am UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/4 "2023-02-05T10:43:44Z")

</div>

how to do what?  
You can start with the example I sent, and modify it to what you need, using the engine API.  
See lots of examples on how this is done here: [PlayCanvas Examples](https://playcanvas.github.io/#/misc/hello-world)

---

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [February 5, 2023, 5:48pm UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/5 "2023-02-05T17:48:37Z")

</div>

I can create an html that have to be embedded into pages like itch io etc,

I want to know how to export these html into offline html which can be just played like you example sent me

---

<div class="post-metadata">

**Author:** ![Tirk182](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/tirk182/32/21525_2.png) [@Tirk182](https://forum.playcanvas.com/u/Tirk182)\
**Post date:** [February 5, 2023, 6:47pm UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/6 "2023-02-05T18:47:54Z")

</div>

@Nofil_khan Here is how I do it.

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/4/b/4b8e3190a4c0dc9fab7f45009af13a43f56f94d2.png)

[https://developer.playcanvas.com/en/user-manual/publishing/web/](https://developer.playcanvas.com/en/user-manual/publishing/web/)

This is from a previous post.

> [@\[SOLVED\] Uploading To Itch.io](https://forum.playcanvas.com/t/uploading-to-itch-io/29269):
>
> I want to upload my game to [itch.io](http://itch.io) and I need to upload it today, and I am in no interest to upgrade (yet) is there a way to convert the zip to html5 or something? plz help

---

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [February 5, 2023, 7:02pm UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/7 "2023-02-05T19:02:00Z")

</div>

Hi I know how to do it and upload manually on any web

I want to be like this example

> **[Lift.html](https://drive.google.com/file/d/19sqt3rjYPAtSreYvh5EZEsuyYeyj0pZm/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 6, 2023, 11:40am UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/8 "2023-02-06T11:40:07Z")

</div>

There are a couple of solutions here in regards to ‘without having any internet connection’.

1. Run a local server. Probably the simplest solution here is to run a local server on the PC with python simple server or XAMPP or something else. You can then download the build from PlayCanvas and host it from your local server.

2. Build a simple [Electron](https://www.electronjs.org/) app so you can run it as an executable.

3. If you must have it so it can run by double clicking the HTML, I did create a tool that can do a conversion: [GitHub - playcanvas/playcanvas-rest-api-tools: A set of tools to use with the PlayCanvas REST API for common jobs such as downloading a build and archiving a project](https://github.com/playcanvas/playcanvas-rest-api-tools#converting-a-project-into-a-single-html-file) There are some limitations that you should read first and I also recommend that you use [extern files](https://github.com/playcanvas/playcanvas-rest-api-tools#extern-files) option too.

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [February 6, 2023, 12:00pm UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/9 "2023-02-06T12:00:58Z")

</div>

I think perhaps @Nofil_khan is hoping to export a single html file from the Editor, that would embed as binary blobs any assets, instead of loading those from separate files? I’m not sure.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [February 6, 2023, 12:08pm UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/10 "2023-02-06T12:08:53Z")

</div>

In which case, option 3 is the best/only option for them at this point. The extern files option only creates a few extra files which is needed for large projects otherwise the browser dies loading the HTML with all the base64 assets.

Example:  
[card.html.zip](https://forum.playcanvas.com/uploads/short-url/zm0v2TmFLEb5GTdKrlwN3NM6giM.zip) (3.6 MB)

From this project: [https://playcanvas.com/project/855103/overview/stencil-buffer--3d-magic-card](https://playcanvas.com/project/855103/overview/stencil-buffer--3d-magic-card)

---

<div class="post-metadata">

**Author:** ![Nofil\_khan](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/nofil_khan/32/24423_2.png) [@Nofil\_khan](https://forum.playcanvas.com/u/Nofil_khan)\
**Post date:** [February 7, 2023, 6:55pm UTC](https://forum.playcanvas.com/t/is-their-possibility-i-can-create-offline-html/29552/11 "2023-02-07T18:55:18Z")

</div>

Yeah this example is exactly what I need ,i will look into your Third option
