.xml.yaml.yml.toml.ini.conf.env.properties

XML, YAML and config files: what they are and how to open them

A config file is plain text that tells a program how to behave: settings written as XML tags, YAML indents, INI sections or name=value lines. Drop one here to read it in color, or open it in any text editor.

Drop your config file here

Opens on this device. Nothing is uploaded. Any other file works too.

What is a config file?

Programs keep their settings in text files so people can read and change them, and there is no single format. INI files, with [sections] and key=value lines, date from early Windows; .properties files are the Java equivalent; .conf and .cfg files follow whatever syntax their program defines; .env files list environment variables, one NAME=value per line.

XML (a W3C standard since 1998) and YAML (from the early 2000s, now version 1.2.2) are general data formats that many programs use for settings; Docker Compose, for example, reads a compose.yaml file. TOML, created by GitHub co-founder Tom Preston-Werner for config files, reached version 1.0 in 2021 and 1.1 in December 2025.

A program reads only the names it knows: Windows’ own INI reader quietly falls back to a default when a name is misspelled. And .env files often hold passwords and access keys, because many apps read credentials from environment variables. Treat them as secret.

What is inside

All of these are plain text, usually UTF-8, and each marks structure its own way. XML nests tags inside exactly one root element and often starts with a line such as <?xml version="1.0" encoding="UTF-8"?>. YAML nests by indentation and allows only spaces for it, never tabs. TOML and INI group key = value lines under [section] headers, and in TOML and YAML a # starts a comment.

XML is strict: a reader must stop at the first broken tag. YAML guesses types from how values look, and the rules changed between versions. Under YAML 1.1, unquoted yes, no, on and off mean true or false; YAML 1.2 treats only true and false that way. A value in quotes stays text under both.

One setting, a server port, in four config formats.

How to open a config file

Windows

  • NotepadBuilt in. Right-click the file and choose Open with, Notepad to read or edit it.
  • Visual Studio CodeFree. Colors XML, YAML, INI, .properties and .env files, and shows and converts the indentation from the status bar.
  • Universal File Opener for WindowsOursReads and edits XML, YAML, TOML, INI and other settings files with colors, find and replace, undo and a history of versions on the PC. Format document re-indents XML.

Mac

  • TextEditBuilt in. Opens settings files as plain text, where smart quotes stay off unless you change TextEdit’s settings.
  • Visual Studio CodeFree. Colors XML, YAML, INI, .properties and .env files.

iPhone and iPad

  • FilesBuilt in. Tap an .xml or .yaml file for a Quick Look preview of its text.

Android

  • Universal File OpenerOursReads and edits settings files offline with syntax colors, comment toggling and indent buttons for keyboards without Tab. Encoding and line endings are kept on save.

In a browser

  • Universal File OpenerOursDrop the file on this page to read it in color, search it, or change the text encoding if letters look wrong. Nothing is uploaded.

Won’t open?

A program rejects a YAML file after an edit

Check the indentation. YAML nests by spaces, never tabs, and a line one space off moves to a different level. In VS Code, the status bar shows the indentation and converts tabs to spaces.

A value changed meaning, such as NO becoming false

Tools that follow YAML 1.1 read unquoted yes, no, on and off as true or false. Put quotes around values that are meant as text: country: "NO".

An XML file stops loading after one edit

XML readers must stop at the first error, such as a missing closing tag or a second top-level element. Undo the edit or compare it with a backup; most browsers can also point out where the file is malformed.

Windows asks which app to use

Windows has no app set for .yaml, .toml, .env or .conf files. Choose Notepad or a code editor and select Always. Opening a settings file changes nothing until you save it.

A file edited in TextEdit stops working

TextEdit may have saved it as rich text, with curly quotes, or added .txt to the name. Use the Format menu to make it plain text, and in TextEdit, Settings, Open and Save, turn off Add “.txt” extension.

Convert a config file

  • To Excel table, from XMLIn Excel, choose Data, Get Data, From File, From XML, pick the file, then choose the items to load in the Navigator.

Config files in our apps

Read and edit XML, YAML, TOML, INI and other settings files offline in UFO on Android and Windows, with syntax colors, find and replace and indent tools. On Android, supported encodings and line endings are kept on save.

Get it on Google PlayGet it from Microsoft Store
All Android tools and limits for config files
  • Syntax highlighting across 19 language modes; comment-toggling with the right token per language.
  • Block indent/outdent buttons for keyboards without Tab, go-to-line, line operations (duplicate, move, sort, join).
  • Find and replace with live match counts; undo/redo that survives saves.
  • Textual property lists (.plist) open the same way.

Limits

  • No schema-aware validation. Check the saved file with the application that uses it.
  • Binary property lists and other binary configuration files use hex view.

Walkthrough: Edit text, code and data on Android