Moonlux Editor is a code editor that runs entirely in your browser, on phones, tablets, and desktops alike. Write HTML, CSS, and JavaScript and watch a live preview update as you type — or write Python, Java, C++, and dozens of other languages and run them to see real output. No installs, no accounts, nothing to configure.
Open the sidebar with the menu icon in the top left. From there you can
create new files and folders, upload existing files, folders, or a
.zip archive, or just drag them onto the page — the
structure and file references stay intact. Tap any file to open it; the
pencil and trash icons let you rename or delete it.
Every change you make is saved in this browser as you type. If the tab closes, refreshes, or crashes, reopening it brings back your files — and the exact file you were working on — with nothing extra to do.
The left pane is your code editor; the right pane is the live preview. Drag the divider between them to resize either one — with a finger or a mouse. For HTML/CSS/JS projects, the preview updates automatically every time you edit a file that your page references.
Working in a language that doesn't render in a browser? Open the file and tap the play button next to "Preview" to run it and see its actual output, errors included.
The sparkle button above the editor beautifies your current file. The sun/moon toggle switches between Solarized dark and light — the colors you see match this exact palette no matter what language you're writing.