ONIX Viewer
Readable ONIX XML in your browser: a collapsible tree, short tags or reference names at one click, EDItEUR code-list labels inline, and automatic validation.
Can't get it working? Take a look in the FAQ.
Manual installation Source on GitHub
What it does
Open any ONIX file in your browser, from a URL or from disk, and instead of a wall of tags you get a syntax-highlighted tree you can fold, search and copy from. The extension only activates on documents that are actually ONIX. Other XML is left to the browser.
- Code-list labels. Every value from the bundled EDItEUR lists gets its label beside it, and a click opens the whole list with a link to EDItEUR's definition page. All 165 lists are bundled, so it works offline.
- Thema. Thema subject codes get their headings and are checked against Thema 1.7. An unknown code is a warning, since Thema grows.
- Product summaries. A folded
<Product>reads ISBN · form · title, so a feed with thousands of products stays scannable. - Validation. Every file is checked against the ONIX 3.0 or 3.1 content model as it loads: missing, misplaced or unknown elements, codes outside their list, deprecated codes and elements with EDItEUR's advised replacement, datatype violations, uniqueness rules and ISBN and GTIN check digits. Each finding is pinned to its row, and the toolbar count opens a list you can jump from, filtered by severity, with up to 10,000 errors and 10,000 warnings.
- Both dialects. View a short-tag file under reference names or the reverse with one switch. Copying follows what you see.
- Supports ONIX 2.1, 3.0 and 3.1, reference and short tags, and the ONIX Acknowledgement message.
Try it
With the extension installed, open one of these sample files:
- A valid ONIX 3.1 message that uses every block
- An ONIX 3.1 message with short tags
- An ONIX 3.1 message that breaks as many schema rules as possible
- An ONIX 3.0 message with the constructs that change when converted to 3.1
More are listed on the ONIX sample files page.
Installation
ONIX Viewer is available for Chrome, Firefox and Safari.
Chrome, from the Chrome Web Store
The preferred way. Open ONIX Viewer in the Chrome Web Store and click Add to Chrome. Chrome keeps it up to date from then on.
ONIX Viewer needs Chrome 119 or later.
Chrome, manually
If you would rather not use the store, or want a specific version:
- Download
onix-viewer-<version>.zipfrom the releases page on GitHub. - Unzip it somewhere permanent. Chrome loads the extension from that folder, so do not delete or move it afterwards.
- Open
chrome://extensionsand turn on Developer mode in the top right. - Click Load unpacked and pick the unzipped folder.
Chrome shows a developer-mode notice on restart for extensions loaded this way, and updates are manual: replace the folder's contents with the new release and press the reload arrow on the extension's card.
Chrome, local files
Either way, to open .xml files from disk, enable Allow access to file URLs under the extension's Details in chrome://extensions. The FAQ explains why Chrome asks for this.
Firefox, from Firefox Add-ons
Open ONIX Viewer on addons.mozilla.org and click Add to Firefox. Firefox keeps it up to date from then on.
From Firefox 153 on, to open .xml files from disk, turn on Access local files on your computer on the extension's Permissions and data tab in about:addons. The FAQ has the steps.
ONIX Viewer needs Firefox 140 or later.
Safari, from the Mac App Store
- Open ONIX Viewer in the Mac App Store and click Get.
- Open the ONIX Viewer app once. That registers the extension with Safari.
- In Safari, open Settings → Extensions and turn on ONIX Viewer.
- Click the extension's button in the toolbar and choose Always Allow on Every Website. Until you do, Safari shows ONIX files with its own XML view.
The App Store keeps it up to date from then on. ONIX Viewer needs Safari 18 or later, on macOS 15 or later.
Keyboard shortcuts
- / search, Enter and Shift+Enter step through matches, Esc closes
- e expand one level, c collapse one level
- t switch between reference names and short tags
- v open the findings list
- w toggle soft wrap
Privacy
ONIX Viewer collects no data. It declares no permissions and no host permissions, has no background process, and makes exactly one network request: a same-origin re-fetch of the page you are already viewing, to read its XML source. Nothing is stored, sent anywhere, or shared with anyone. The privacy policy says this in full, and the threat model and how to verify it are in SECURITY.md.