What Is PO to JSON?
PO (Portable Object) is the standard file format used by GNU Gettext for managing translations in software projects. Converting PO to JSON enables modern web applications to consume translation data directly in JavaScript and TypeScript i18n libraries.
This is used for:
- Web Localization: Transforming Gettext translation files into JSON objects for use in React, Vue, and Angular i18n systems.
- API Integration: Converting PO translation exports into machine-readable JSON for backend services and content management systems.
- Migration Projects: Porting legacy Gettext-based translation workflows to modern JSON-based toolchains.
How to Use PO to JSON Online
- Paste your PO content: Copy your entire Gettext PO file — including all msgid/msgstr pairs and header metadata — and paste it into the input editor.
- Click Convert: Press the Convert to JSON button to instantly parse the PO structure into a flat JSON key-value object.
- Copy or download: Use the copy button or download the result as a .json file ready for use in your project.
Frequently Asked Questions
What is the difference between PO and POT files?
POT (Portable Object Template) files are templates used as the source for creating language-specific PO files. Both share the same format, so this converter works with both PO and POT files equally well.
Is this tool safe?
Yes. All processing happens 100% client-side in your browser. Nothing is uploaded to any server.
Is this tool free?
Yes, completely free with no usage limits or registration required.
Real-World Examples
Open-source projects like WordPress and Drupal rely on PO files for translation management. Developers often need to convert these PO exports into JSON format when building REST API endpoints or JavaScript-based frontends that consume translated content from these CMS platforms.
Related Tools
- JSON to PO — Reverse conversion from JSON back to Gettext PO format
- XLIFF to JSON — Convert XLIFF translation files to JSON
- ARB to JSON — Convert Flutter ARB localization files to JSON