lookup> .ps1

.PS1·File Extension

PowerShell ScriptPowerShell script file.

Data & Text
Extension.ps1
File typePowerShell Script
MIME type
CategoryData & Text
Charset
Compressible
Format familypowershell

What is a .ps1 file?

A .ps1 file is a PowerShell Script — PowerShell script file.

In the mime-db registry it has no registered standard MIME type. When serving this file over HTTP, use a Content-Type that matches its actual format.

  • Use Windows PowerShell or VS Code to open and edit .ps1 files.
  • Any text editor (Notepad, VS Code) can inspect the raw content as text.

When served over HTTP, responses should set the following header:

# No standard MIME type is registered for .ps1

Common software that reads/writes .ps1:

Windows PowerShellVS Code
.ps1extension of
format
powershellserved as
mime type
sent via header
http header
  • Configuration files
  • Data interchange between systems
  • API request and response payloads
  • Logs and data exports
  • Open the file with Windows PowerShell, make your changes and save.
  • Most editors preserve the original formatting and encoding — avoid changing the charset.
  • Create a new file and save it with the .ps1 extension, or export this format from Windows PowerShell.

What programs can open .ps1 files?

Common options include Windows PowerShell, VS Code. You can also open many of these files with built-in viewers or a browser.

How do I create a .ps1 file?

Create a new file in any text editor or the app that owns the format and save it with the .ps1 extension.

Updated 2026-08-18

Related extensions

Related programming languages

Related headers

Related methods

Related status codes