| Field | Value | Copy |
|---|---|---|
| {{ row.label }} | {{ row.value }} |
{{ normalizedYaml }}
{{ iniText }}
{{ envText }}
{{ propertiesText }}
| Document | Path | Type | Preview | Copy |
|---|---|---|---|---|
| Doc {{ row.docIndex }} | {{ row.path || '(root)' }} | {{ formatTypeLabel(row.type) }} | {{ row.preview }} |
| Path | Types | Docs | Example |
|---|---|---|---|
| {{ row.path }} | {{ row.types }} | {{ row.docs }} | {{ row.example }} |
Environment configuration files are collections of named values that tell an application where to connect and which features to enable. They sit between code and infrastructure and keep sensitive details out of your source tree.
Environment variables make it easy to switch between local development and production setups, and a converter for environment settings helps you reuse the same information across different configuration styles. Here you work with one configuration input, see it summarised in a small dashboard, and decide which representation best suits your workflow.
You provide the plain text that already drives your application, and the page analyses it into keys, values, and a rough sense of structure. The results include a summary of counts and nesting, a flattened list of paths, and ready to copy views for several configuration formats.
For example you might paste the environment file you use during staging, then generate a structured representation for a deployment system that prefers a different format. Along the way you can check that related keys share consistent prefixes and that you are not carrying unused or duplicated entries.
Because configuration often includes secrets, treat the tool as a safe place for working copies rather than a long term vault and clean shared outputs before committing them. When you revisit a service later, compare summaries instead of scanning line by line to spot growth in settings and possible simplification opportunities.
Environment configuration here is modelled as a single document of key and value pairs. Each key identifies one piece of configuration such as a host name, port number, feature flag, or logging level, and the document summary reports the number of keys, scalar values, and the maximum depth of any nested structures.
The parser reads the input text line by line, ignoring blank lines and comments that start with a hash. Every remaining line must combine an optional export keyword and a name, followed by an equals sign and the raw value text. When the same name appears more than once, the later value replaces the earlier one and a warning records the change.
Value parsing distinguishes quoted strings, unquoted booleans, and numeric literals. Double quoted values unescape newline, carriage return, and tab escapes, single quoted values keep all characters literally, bare values that match true or false become booleans, and bare values that match an integer or decimal pattern become numbers. All other values remain as plain strings so they survive export unchanged.
Structured output is produced from that internal document in several families. JavaScript Object Notation (JSON) output can be minified or pretty printed with a configurable indentation step, YAML Ain't Markup Language (YAML) output respects indentation width, line wrapping, key sorting, anchor expansion, and optional forced quoting, while initialisation file (INI) output groups keys into sections derived from their paths. Additional exports generate a flattened environment style listing and a properties file with dotted paths.
The flattening stage walks the document recursively and records one row for every scalar location. For each row it keeps the document index, a path in either dot notation or slash notation, the detected type, and a short preview of the value. A separate schema view collapses rows with the same path to show all observed types, the number of documents they appear in, and an example value for that path.
From these traversals the tool computes summary metrics, including total nested keys, scalar counts, and the deepest discovered level. The path preview is limited to a configurable number of rows between 50 and 2000, and when the full set of paths exceeds that limit a badge and warning note that only the first portion is visible while exports still include every path.
| Parameter | Meaning | Unit/Datatype | Typical range | Sensitivity | Notes |
|---|---|---|---|---|---|
| Document count | Number of configuration documents derived from the pasted text. | Integer | 1 | Low | Current parser builds a single document per input. |
| Total nested keys | All keys discovered during the recursive walk, including nested objects. | Integer | 1 to many | Medium | Useful for spotting configuration growth over time. |
| Scalar values | Count of leaf values that are not objects or arrays. | Integer | 1 to many | Medium | Tracks how many distinct settings are actually populated. |
| Maximum depth | Deepest level of nesting reached by any key. | Integer | 1 to many | High | Higher values suggest more complex structures or naming schemes. |
| Top types | Most frequent value kinds, such as string, number, or boolean. | String list | Varies | Low | Gives a quick feeling for how strongly typed the configuration is. |
Worked example:
APP_ENV=production
APP_NAME=example
DB_HOST=127.0.0.1
DB_PORT=5432
CACHE_ENABLED=true
With this input the parser reports one document, five top level keys, five scalar values, and a maximum depth of one. Flattened paths list each key, while exports provide matching JSON, YAML, INI, environment listing, and properties representations that all carry the same values.
| Field | Type | Min | Max | Step / Pattern | Error text | Placeholder |
|---|---|---|---|---|---|---|
| .env content | Multiline text | 1 key line | Not enforced | Lines matching optional export, name, equals, value | “No key-value pairs detected in the .env content.” | Sample environment snippet with several keys and values |
| JSON spacing | Select integer | 0 | 8 | Options for 0, 2, or 4 spaces | Invalid entries are sanitised to a supported value. | Default of two spaces for pretty printing |
| YAML indent | Numeric input | 1 | 8 | Rounded to the nearest whole number | Out of range values fall back to a safe default. | Default of two spaces |
| YAML line width | Numeric input | 0 | 240 | Zero disables wrapping, others rounded to an integer | Invalid entries revert to the standard width. | Default of 80 characters |
| Max preview paths | Numeric input | 50 | 2000 | Rounded and clamped to the allowed window | Too small values are raised to the minimum. | Default of 400 paths |
| ENV prefix | Single line text | None | Not enforced | Trimmed and appended before generated key names | Empty prefixes are simply ignored. | Example prefix such as APP |
| Input | Accepted families | Output | Encoding / precision | Rounding |
|---|---|---|---|---|
| Pasted text or dropped file | .env style configuration with comment lines | Internal document of keys and typed values | Unicode text assumed, booleans and numbers stored as native types | No numeric rounding beyond JavaScript number representation |
| Internal document | Objects with scalar leaves | JSON export | Configurable indentation, escaped according to JSON rules | No additional rounding, values preserved as parsed |
| Internal document | Objects with scalar leaves | YAML export | Indentation, wrapping, quoting, and anchors controlled by options | No rounding, only formatting changes |
| Flattened paths | One row per scalar | INI, environment listing, properties file | Strings built from paths, types preserved where possible | No rounding, textual representations only |
Configuration snippets and files are processed within the browser session and remain on the device in use. Files are processed locally; nothing is uploaded, yet you should still avoid pasting secrets that conflict with organisational policies or data handling rules.
Environment configuration conversion here turns raw key and value lines into tidy formats that are easier to share, review, and reuse across tools.
A common workflow is to paste the configuration from a shared secret manager, verify that key names and counts look sensible, generate a standard YAML export for infrastructure automation, and archive the flattened schema table as lightweight documentation for the team.
No, configuration text and files are processed inside the browser session and kept in memory only for the duration of your visit. Clipboard and file downloads move data directly between your device and the page.
Always follow your organisation's policies when handling secrets.The parser handles standard name and value pairs, including optional export prefixes, comments, and simple quoting rules. Lines that do not fit the expected pattern are skipped with a warning so they do not silently distort exported formats.
If many lines are skipped, adjust formatting before relying on exports.You can export structured configuration as JSON, YAML, and INI, plus environment style listings and properties files built from flattened paths. All exports share the same underlying document, so values stay aligned between views.
YAML export depends on the formatting library being available.Once the page has loaded, parsing, flattening, and export logic run in the browser. If you open the tool while offline, some assets such as external libraries may not load, which can disable specific exports like YAML until connectivity returns.
Check for warnings if an export tab appears empty.The converter is presented as a convenience utility for working with environment configuration. You do not need a license key or account within this interface, although you should still respect any licensing that applies to the surrounding site or bundled code.
Consult project documentation if you redistribute generated files.Increase the maximum preview paths in the advanced section, then recompute to see a wider slice of the flattened tree. Use the path and schema CSV exports for detailed analysis in a spreadsheet, and rely on the overview metrics to track complexity over time.
Very large files may still feel easier to scan in a dedicated editor.When the number of discovered paths exceeds your preview limit, the interface shows only the first portion in the paths table and marks the summary with a trimmed badge. All exports continue to include every path, so no data is lost from the underlying document.
Raise the limit when you need to inspect more rows directly.