XML · Gratis · En tu dispositivo

Corrupt an XML File Online

Corrupt an .xml file online for free. Breaks the declaration, tag nesting and encoding so XML parsers reject the document as not well-formed.

  • Sin subidas
  • Sin límite de tamaño
  • Sin registro

Corrompe tu archivo XML

Ajustado para .xml, .xsd, .rss, .plist, y funciona igual de bien con cualquier otro formato.

100% en tu dispositivo
Suelta archivos aquí o explora Cualquier formato, cualquier tamaño, varios archivos a la vez
Nivel de corrupción

Trabajando…0%
Listo para descargar

Por qué los archivos XML son difíciles de corromper como es debido

XML parsers are strict about well-formedness but tolerant about a great deal else. The reliable way to break an XML document is to attack the three things every parser checks first: the declaration, the encoding, and the balance of the tag tree.

Qué destruye esta herramienta

  • The XML declaration. The opening <?xml version…?> processing instruction is destroyed, so encoding and version cannot be established.
  • Tag balance. Angle brackets and tag names are overwritten throughout, leaving elements permanently unclosed.
  • Encoding validity. Invalid UTF-8 sequences make the document fail before the parser reaches the grammar.
  • The root element. The closing bytes are destroyed, so the document root is never terminated.

Qué verás después

AplicaciónComportamiento
Browsers"This page contains the following errors: not well-formed" with the offending line highlighted.
Python ElementTreeRaises ParseError: not well-formed (invalid token).
Java / .NET parsersThrow SAXParseException or XmlException on the first token.
XML editorsRefuse to load or open the file in plain-text mode with errors flagged.

Motivos habituales para hacer esto

  • Testing an XML ingestion endpoint against malformed input.
  • Verifying that a SOAP or RSS consumer surfaces parse failures properly.
  • Checking a configuration loader refuses a damaged file rather than starting with defaults.
  • Producing not-well-formed fixtures for a conformance test suite.

Cómo corromper un archivo XML

  1. Suelta tu archivo .xml en la caja de arriba, o haz clic para explorar.
  2. Deja el nivel en Standard salvo que quieras un daño parcial (Light) o necesites derrotar al software de recuperación (Heavy).
  3. Pulsa Corromper archivo. El procesamiento ocurre en tu dispositivo, así que termina casi al instante.
  4. Descarga el resultado. De forma predeterminada conserva el nombre de archivo y la longitud en bytes originales.

Preguntas frecuentes sobre XML

Does this break XML schema validation too?

It never gets that far. Schema validation happens after parsing, and the document fails well-formedness first.

Will it work on SVG, RSS or plist files?

Yes. All are XML underneath and use the same profile. There is also a dedicated SVG corrupter.

Can I keep it looking like valid XML?

Light level preserves most of the structure, so the file still looks like XML at a glance while failing to parse.

Is the file uploaded anywhere?

No. All processing happens in your browser and nothing is transmitted.

Úsalo con responsabilidad. Files Corrupter está pensado para pruebas de software, QA, investigación, formación y educación. Entregar un archivo corrompido a propósito para tergiversar un trabajo terminado puede infringir las normas de tu centro educativo o de tu empresa. Eres responsable del uso que hagas del resultado. Consulta nuestro aviso legal.

Más herramientas de code & data

Todas las herramientas de corrupción