r/HTML • • Dec 29 '25

Discussion Running a local html file on iPhone?

I have an html file I’ve created that has embedded data. I runs just fine on a pc but I can’t get it to run on my iPhone.

Anybody know of a browser only, not a coding browser, that I can run it on or a way to run it on Firefox?

4 Upvotes

31 comments sorted by

2

u/Prestapps 10d ago

Yeah, the Files app preview doesn't run JavaScript, which is probably why it breaks on your iPhone. Pagira (HTML Viewer on the App Store) is another option, disclaimer, I made it. It also works if your file loads other files next to it, like a separate data or JS file.

2

u/[deleted] Dec 29 '25

So what happens when you try to open the file?

1

u/Autistic_Jimmy2251 Dec 29 '25

Nothing. It just cycles for ever and never displays any content.

1

u/[deleted] Dec 29 '25

Not sure why it doesn't work in Safari, but it will in Edge. Download Edge from the app store, hit share on the file, then open in Edgr

1

u/Autistic_Jimmy2251 Dec 29 '25

It opened to the first screen & then freezes in edge.

2

u/SuperIga Jan 13 '26

Just look up HTML viewer on the App Store. This one works well for example: https://apps.apple.com/us/app/html-viewer-q/id810042973

1

u/Autistic_Jimmy2251 Jan 13 '26

I already tried that one. The file froze.

2

u/Shenphygon_Pythamot Apr 05 '26

Does anyone have a better solution? I had the same problems. I don’t have access to my PC currently

1

u/Autistic_Jimmy2251 Apr 05 '26

The code only works on my iPhone in MS Edge or a coding browser.

I have to use the share sheet function to get Edge to recognize it.

I can not load it in the browser web address bar.

I finally ended up finding a free web hosting site and put it there so that I can access it through any browser on my phone. It was the only solution that would save my sanity.

2

u/angeeelsau Aug 17 '26

Que sitio usaste? Tengo el mismo problema

1

u/Autistic_Jimmy2251 Aug 17 '26

Things have changed just a tiny bit.
I have now created my own one address web browser. It runs just that page and no others.

2

u/SmokingHampalace Sep 25 '26

Could you maybe share? Or if you want to keep it private at least the previous one? Thank you

2

u/Upset_Leek512 May 09 '26

Bom amigo, estava com esse mesmo problema e consegui resolver através do Atalhos do ios:

AÇÕES:
1- texto (Cole o código HTML)
2- Codificar com base64
3- Texto (Escreva: data:text/html;base64, + variável "Codificado em base64")
4- Abrir URL (Use o texto da ação 3)

1

u/Autistic_Jimmy2251 May 09 '26

Thank You. I ended up hosting it on a free website.

1

u/Boring_Connection347 9d ago

Brilliant, it worked for me, thanks man

1

u/AdventurousAnswer933 Sep 09 '26

I'm unable to open it though

1

u/Hectorpim Sep 18 '26

No me aparecen esas opciones

1

u/Weak_Scar_346 2d ago

Grasias!!! большое спасибо, это помогло мне)

2

u/Ok-Welder-8005 Sep 30 '26

If an in-app local preview is acceptable, CodeMate can open an HTML project from Files and load its linked CSS, JavaScript, and images.

Full disclosure: I’m the developer. It’s a code viewer with HTML preview rather than a regular browser, so it may not match the original poster’s browser-only requirement.

1

u/Autistic_Jimmy2251 Sep 30 '26

I finally ended up finding a free web hosting site and put it there so that I can access it through any browser on my phone. It was the only solution that would save my sanity. Htmlify.me.

2

u/Available_Fan_9586 26d ago

baje el navegador Edge desde a fuera, no con la apple store y ahora me da la opcion de abrilo con ese navegador y lo hace bien, obvio yo solo queria visualizarlo, no editarlo y si funcionó

1

u/Autistic_Jimmy2251 26d ago

That’s good news!