Skip to main content

Web2Markdown / File Types

125 text file types, grouped the way the editor groups them.

The Web2Markdown desktop editor opens, edits, and saves every suffix below with its bytes and line endings preserved. Markdown gets preview and export; everything else gets a careful source editor.

How file support works

The Web2Markdown desktop editor opens, edits, and saves 125 kinds of text file, listed below exactly as the editor groups them. The Open dialog offers an All Supported Text filter and each group as its own filter. Save As shows every supported suffix with its format name and lets you search by extension, format, or category before the native dialog opens. Typed unlisted suffixes and extensionless filenames remain available through All Files.

Every format keeps its bytes honest: UTF-8 text is not re-encoded, existing LF, CRLF, or CR line endings are preserved, and likely binary files are rejected before they reach the editor. Preview, outline, Markdown formatting, image insertion, and rich export are Markdown-only; every other format opens as a source editor. Verified against Web2Markdown desktop 2.7.1 and extension 1.6.1 on 2026-09-09.

Markdown (2)

Preview, outline, Markdown formatting, image insertion, and rich export are enabled for these documents.

ExtensionFormat
.mdMarkdown
.markdownMarkdown

Plain Text and Logs (4)

Plain source editing with search, line-ending preservation, and the safe fallback for anything unrecognized.

ExtensionFormat
.txtPlain Text
.textPlain Text
.logLog
.outProgram Output

Structured Data (11)

Exact syntax highlighting for the JSON, XML, YAML, and TOML families, and Document Check findings for every format in this group.

ExtensionFormat
.jsonJSON
.jsoncJSON with Comments
.json5JSON5
.jsonlJSON Lines
.ndjsonNewline-Delimited JSON
.yamlYAML
.ymlYAML
.tomlTOML
.xmlXML
.csvCSV
.tsvTSV

Configuration and Environment (16)

Dotenv files use the .env or .env.variant name. Document Check covers dotenv; the rest open as plain source.

ExtensionFormat
.envDotenv
.iniINI Configuration
.cfgConfiguration
.confConfiguration
.configConfiguration
.propertiesJava Properties
.editorconfigEditorConfig
.gitconfigGit Configuration
.gitignoreGit Ignore Rules
.gitattributesGit Attributes
.dockerignoreDocker Ignore Rules
.npmrcnpm Configuration
.yarnrcYarn Configuration
.eslintignoreESLint Ignore Rules
.prettierignorePrettier Ignore Rules
.browserslistrcBrowserslist

Web and Templates (14)

Markup, styles, and component or template files open as source editors.

ExtensionFormat
.htmlHTML
.htmHTML
.cssCSS
.scssSCSS
.sassSass
.lessLess
.svgSVG
.vueVue Component
.svelteSvelte Component
.astroAstro Component
.hbsHandlebars Template
.handlebarsHandlebars Template
.mustacheMustache Template
.ejsEJS Template

JavaScript and TypeScript (8)

Every module flavor, including ES module and CommonJS suffixes.

ExtensionFormat
.jsJavaScript
.mjsJavaScript ES Module
.cjsCommonJS JavaScript
.jsxJSX
.tsTypeScript
.mtsTypeScript ES Module
.ctsCommonJS TypeScript
.tsxTSX

Shell and Automation (9)

Unix shells, PowerShell, and Windows batch and command scripts.

ExtensionFormat
.shShell Script
.bashBash Script
.zshZsh Script
.fishFish Script
.ps1PowerShell Script
.psm1PowerShell Module
.psd1PowerShell Data File
.batWindows Batch File
.cmdWindows Command Script

Programming Source (38)

Thirty-eight source suffixes. These open as plain source editors; the editor does not compile, run, or lint them.

ExtensionFormat
.pyPython
.pywPython Windowed Script
.rbRuby
.phpPHP
.javaJava
.ktKotlin
.ktsKotlin Script
.cC
.hC Header
.cppC++
.hppC++ Header
.ccC++
.cxxC++
.csC#
.goGo
.rsRust
.swiftSwift
.dartDart
.luaLua
.rR
.sqlSQL
.graphqlGraphQL
.gqlGraphQL
.protoProtocol Buffers
.scalaScala
.scScala Script
.cljClojure
.cljsClojureScript
.cljcClojure Common
.ednEDN
.exElixir
.exsElixir Script
.erlErlang
.hrlErlang Header
.fsF#
.fsxF# Script
.vbVisual Basic
.groovyGroovy

Build and Infrastructure (10)

Build definitions, infrastructure as code, and systemd units.

ExtensionFormat
.gradleGradle Build Script
.mkMakefile
.makeMakefile
.cmakeCMake
.ninjaNinja Build
.tfTerraform
.tfvarsTerraform Variables
.hclHCL
.servicesystemd Service Unit
.timersystemd Timer Unit

Documentation and Publishing (8)

Other lightweight markup and publishing formats. Preview and export stay Markdown-only.

ExtensionFormat
.rstreStructuredText
.adocAsciiDoc
.asciidocAsciiDoc
.texTeX
.bibBibTeX
.orgOrg Mode
.textileTextile
.wikiWiki Text

API and Request Files (5)

Request files and API description formats.

ExtensionFormat
.httpHTTP Request
.restREST Request
.ramlRAML
.wsdlWSDL
.xsdXML Schema

Document Check coverage

Document Check is local, read-only, dependency-free, and capped at 200 findings. It reports errors and warnings for JSON, JSON Lines, NDJSON, XML, YAML, TOML, dotenv, CSV, TSV, and Markdown frontmatter and code fences, plus trailing whitespace and mixed indentation for every editable text file. Warnings do not claim a document is invalid, and the check does not replace the target system's own validation.

Exact syntax highlighting covers the JSON, XML, YAML, and TOML families and Markdown. Other formats open with plain-text presentation.

Frequently asked questions

How many file types does Web2Markdown support?

Web2Markdown supports 125 explicit file suffixes across 11 groups, plus dotenv names such as .env and .env.local and extensionless text files. Unknown suffixes still open through the All Files choice as plain text.

Can Web2Markdown convert between file formats?

No. Save As changes the filename and the editor mode; it does not translate JSON into YAML or one language into another. Export applies to Markdown documents and produces PDF, DOCX, HTML, or plain text.

Does every format get a preview?

No. Preview, outline, Markdown formatting, image insertion, and rich export are Markdown-only. Every other format opens as a source editor, with exact syntax highlighting for the JSON, XML, YAML, and TOML families.

How are .env files handled?

Dotenv files are saved as .env or a named variant such as .env.local, never as variant.env. Document Check reports dotenv findings locally. These files often contain secrets, so share a sanitized example when you ask for help.

Will the file type list change?

The catalog ships inside the desktop app, so a release can add formats. This page reflects desktop 2.7.1. The in-app Help Center lists the exact catalog for your installed version.