Convert INI to XML

Input data

This form allows you convert INI files to XML, paste or upload your INI below:


Your result can be seen below.

Result of INI conversion to XML

Move to "Paste Code" for Save it

About INI conversion to XML

About this tool

The Convert INI to XML was created for online converting INI files into appropriate XML. This can come in handy for testing or debugging your INI data, also for fast formatting and adding XML document to your config or anywhere else.

How it Works?

Just paste your INI config to the textarea above and click to the button "Convert" and you will get XML in the next textarea.

Example of conversion INI files to XML

Before:
; This is a sample configuration file

[first_section]
one = 1
test = sample
animal = BIRD

[second_section]
path = "/var/test"
URL = "https://wtools.io/"
second_section[one] = "1 associated"
second_section[two] = "2 associated"
second_section[] = "1 unassociated"
second_section[] = "2 unassociated"

[third_section]
vaersion[] = "7.0"
vaersion[] = "7.1"
vaersion[] = "7.2"
vaersion[] = "7.3"
After:
<?xml version="1.0"?>
<root>
	<first_section>
		<one>1</one>
		<test>sample</test>
		<animal>BIRD</animal>
	</first_section>
	<second_section>
		<path>/var/test</path>
		<URL>https://wtools.io/</URL>
		<second_section>
			<one>1 associated</one>
			<two>2 associated</two>
			<item0>1 unassociated</item0>
			<item1>2 unassociated</item1>
		</second_section>
	</second_section>
	<third_section>
		<vaersion>
			<item0>7.0</item0>
			<item1>7.1</item1>
			<item2>7.2</item2>
			<item3>7.3</item3>
		</vaersion>
	</third_section>
</root>
After the conversion, you can apply the XML to your project or use it for some other purpose.