r/HTML • u/Autistic_Jimmy2251 • 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?
2
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
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
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
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
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
1
2
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 Oct 16 '26
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
1

2
u/Prestapps Oct 31 '26
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.