PowerShell viewer
To open a PowerShell file, drop it in the box below. It opens straight away, even with no extension or the wrong one. Your browser opens it on your device: nothing is uploaded.
Open in
Opened on this device, never uploadedDrop or paste another file at any time
What you see
| PowerShell in the viewer | |
|---|---|
| Extensions | .ps1, .psm1, .psd1 |
| Colours | highlight.js, PowerShell |
| Large files | Coloured up to 1 MB; past that, plain text with line numbers (up to 64 MB) |
| Files with no extension | Opened from their #! line |
| Extensions | .ps1, .psm1, .psd1 |
| Upload | None: opened on your device |
What is a PowerShell file?
In short
A .ps1 file is a PowerShell script; .psm1 is a module and .psd1 a data file.
The code with line numbers and colours for keywords, strings, comments and numbers, with Wrap lines and Copy. Details lists the text encoding and the number of lines.
How to open a PowerShell file
- Add your PowerShell. Drop the file in the box, choose it or paste it.
- Look at it. The code with line numbers and colours for keywords, strings, comments and numbers, with Wrap lines and Copy. Details lists the text encoding and the number of lines.
- Take it further. Download any file from inside an archive, or open another file.
Questions
Yes, that is what this is for: it is shown as text with colours, and nothing in it runs.
No. It is read in your browser and never uploaded.
No. The viewer runs in your browser and opens the file on your device. Nothing is sent anywhere.