PlayWithJSON

PO to JSON Converter Online

Gettext ➔ i18next & JSON

Convert GNU Gettext .po translation files into structured JSON, i18next dictionaries, or Jed format.

Format:
Indent:
Gettext .po InputValid PO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
JSON OutputJSON
1
2
3
4
5
6
7
8
9
10
PO ➔ Key-Value Map
7/7 translated • 1 plurals • 1 fuzzy
100% Client-Side • In-Memory Zero Latency

PO to JSON Converter Online — Convert GNU Gettext .po to i18next & JSON

Convert GNU Gettext Portable Object (.po) localization files into modern JSON formats directly in your browser. Whether you are migrating translation files to React, Vue, Next.js, or Angular, PlayWithJSON turns complex .po entries, plural forms, and context headers into clean JSON instantly.

Supporting industry-standard output formats including Key-Value JSON, i18next v4, Jed gettext format, and full structured JSON arrays. Automatically handles multi-line strings, escape sequences, context (msgctxt), plurals (nplurals), and fuzzy entries with 100% client-side execution for total data privacy.

{}

Why Use PlayWithJSON?

  • Instant GNU Gettext .po to JSON, i18next, and Jed conversion online
  • Supports plural rules (nplurals) and indexed forms (msgstr[0], msgstr[1])
  • Preserves or transforms context namespaces (msgctxt) cleanly
  • Option to filter fuzzy translations and untranslated empty keys
  • Customizable indentation: 2 spaces, 4 spaces, or compact minified JSON
  • 100% in-browser processing — your localization files never touch an external server

Key Features of Our PO to JSON Converter

Multiple JSON Output Modes

Choose between Simple Key-Value, i18next (v4 plural keys), Jed (Gettext standard with headers), or a Detailed Structured AST array.

Plural & Context Support

Intelligently parses msgid_plural with multiple msgstr[n] indexes and msgctxt disambiguation labels.

Fuzzy & Untranslated Filters

Skip unverified translations marked with "#, fuzzy" or omit keys where msgstr is empty to maintain clean production dictionaries.

Header & Metadata Parsing

Extracts project version, language code, plural equations, and translator credits from the PO header block.

How to Convert a .PO File to JSON Online

1

Paste or Upload Your .po File

Paste your GNU Gettext text directly into the left editor or click the Upload button to select a .po file from your computer.

2

Select Target JSON Format & Options

Choose your desired format (Key-Value, i18next, Jed, or Structured) and toggle options like "Ignore Fuzzy" or "Prefix Context".

3

Copy or Download JSON

Your transformed JSON appears instantly with zero latency. Click "Copy" or "Download .json" to integrate it into your project.

Gettext .po to i18next JSON Conversion Example

Input: GNU Gettext .po File
msgid "Welcome, %s!" msgstr "Bienvenue, %s !" msgid "You have %d message." msgid_plural "You have %d messages." msgstr[0] "Vous avez %d message." msgstr[1] "Vous avez %d messages."
Output: i18next Formatted JSON
1{
2 "Welcome, %s!": "Bienvenue, %s !",
3 "You have %d message.": "Vous avez %d message.",
4 "You have %d message._other": "Vous avez %d messages."
5}

Valid vs. Malformed PO Syntax

Unescaped Multiline Quotes in msgstr
1msgid "Hello"
2msgstr "Unclosed string quote without matching end
PO Syntax Error: String literal missing closing quote on line 2. All Gettext strings must be wrapped in double quotes.
Properly Quoted and Multiline Strings
1msgid "Hello"
2msgstr "Bonjour"

Compatibility & Supported Localization Standards

GNU Gettext .po and .pot (Portable Object Template) format parsing
Standard gettext header metadata extraction (Language, Plural-Forms, Version)
i18next v4 plural suffix compatibility (_other / _plural)
Jed (JavaScript Gettext implementation) JSON schema format
Disambiguation context (msgctxt) namespace isolation
Multiline string concatenation (standard C string literal folding)
Plural indexed array forms (msgstr[0], msgstr[1], msgstr[2])
Escaped character decoding (\n, \t, \r, \", \\)
Fuzzy translation flag (#, fuzzy) filtering toggle
Untranslated empty msgstr fallback to original msgid
100% Client-side zero telemetry in-browser execution
Frequently Asked Questions

Frequently Asked Questions about PO to JSON Conversion

A .po file is a human-readable text file generated by GNU Gettext tools containing software message IDs (msgid) and their corresponding localized translations (msgstr). It is widely used in WordPress, Django, PHP, C++, and Linux applications.

More JSON Developer Tools (30)

View All Tools

JSON Formatter & Validator

Popular

Beautify, validate, minify, and inspect JSON in multi-pane split view with real-time error pinpointing and collapsible tree inspection.

JWT Decoder Online

New

Decode JWT header, payload and signature, convert iat/exp/nbf timestamps and check token expiration entirely in your browser.

JSON Sorter Online

Deterministic

Sort JSON keys alphabetically (A-Z, Z-A), natural alphanumeric, deep recursive, and order arrays deterministically.

JSON5 Formatter & Studio

Comments & Hex

Full ECMAScript 5.1 JSON5 support. Format and validate JSON5 configuration files with inline comments, unquoted keys, single quotes, and hex numbers.

JSON ↔ JSON5 Converter

Bidirectional

Real-time bidirectional synchronization between strict RFC 8259 JSON and human-friendly JSON5 with intelligent quote handling and linting.

JSON to TypeScript Converter

TypeScript

Generate TypeScript interfaces or type aliases from JSON and JSON5 with nested type extraction, unions and optional field detection.

JSON to Zod Schema Converter

Zod

Generate Zod validation schemas from JSON and JSON5 with nullable, optional and union detection plus an inferred TypeScript type.

JSON to BigQuery Schema Generator

BigQuery

Generate Google BigQuery Schema JSON and CREATE TABLE DDL from JSON with RECORD structs, REPEATED arrays, and timestamps.

JSON to GraphQL Schema Generator

GraphQL

Convert JSON into GraphQL Schema Definition Language (SDL) types, input types, queries, and mutations instantly.

JSON to MySQL Table & INSERT Generator

MySQL

Convert JSON datasets into MySQL CREATE TABLE statements and parameterized INSERT INTO queries with type inference.

JSON to PostgreSQL Table & DDL Generator

PostgreSQL

Convert JSON into PostgreSQL CREATE TABLE DDL with SERIAL keys, JSONB columns, native array types, and INSERT queries.

JSON Flattener & Unflattener

Dot Notation

Flatten deeply nested JSON into dot notation or unflatten flat key-value pairs back into nested JSON trees with custom delimiters.

JSON Tree Visualizer & Mindmap

Interactive

Visualize complex JSON hierarchies as an interactive, collapsible SVG mindmap and visual node tree with zoom, pan, and search.

JSON Minifier Online

Compressor

Compress and minify JSON and JSON5 by stripping extra whitespace, newlines, and comments to reduce payload byte sizes.

JSON Token Counter

LLM Tokenizer

Calculate exact token counts for OpenAI GPT-4o, Claude 3.5, and Gemini 1.5 with minification savings and cost estimates.

Broken JSON Repair & Fixer

AI Healer

Automatically fix and heal malformed, truncated, or invalid JSON generated by ChatGPT, Claude, and LLMs in real time.

JSON ↔ YAML Converter Online

JSON5 Support

Bidirectional converter between JSON / JSON5 and YAML. Supports JSON5 comments, unquoted keys, and customizable 2-space or 4-space YAML indentation.

JSON ↔ XML Converter Online

Attributes & XML5

Bidirectional XML & JSON/JSON5 conversion. Preserves XML attributes (@_ prefix), customizable root wrapper tags, and XML declarations.

YAML to CSV Converter Online

Table Preview

Transform YAML records and lists into tabular CSV spreadsheets with intelligent dot-notation object flattening and interactive table grid preview.

CSV to JSON / JSON5 Converter Online

JSON & JSON5

Convert CSV and TSV spreadsheets into structured JSON arrays of objects, 2D matrix arrays, or human-friendly JSON5 with automatic type inference.

JSON to CSV Converter

Table & Excel

Transform nested JSON objects and arrays into clean, RFC 4180 compliant CSV spreadsheets with custom delimiters, quotes, and flatten options.

JSON Stringify & Unescape Online

Bidirectional

Escape double quotes, forward slashes, and backslashes to stringify JSON into safe literals, or unescape strings back to beautified JSON.

Text to JSON Generator

Smart Mock Data

Convert natural text syntax and shorthand schema templates into strict structured JSON. Generate realistic mock datasets using smart tokens.

Mock JSON Generator

Up to 2,000 Records

Generate realistic fake JSON data for APIs, testing, and development. Choose from User, Product, Order, and Company templates with custom fields, seeds, and nested schemas.

JSON Diff & Comparator

Visual Diff

Compare two JSON objects side-by-side with color-coded diff highlighting. Detect added, removed, modified, and reordered properties instantly.

JSON Schema Generator

Draft 2020-12

Automatically infer and generate valid JSON Schema definitions from raw JSON samples. Supports Draft-07, 2020-12, and Draft-04 standards.

JSONPath Tester & Query Tool

RFC 9535

Execute and evaluate JSONPath expressions live against complex JSON trees with highlighted matches, query history, and cheatsheet.

Prompt to JSON Converter

NEW

Convert natural language prompts into structured JSON schemas deterministically in your browser. 100% private, no API required.

JSON Escape & Unescape Online

Fast

Escape quotes, backslashes, and special characters or unescape string literals and decode raw string payloads back into valid formatted JSON.

PO to JSON Converter

i18n Ready

Convert GNU Gettext .po localization files into modern JSON formats, i18next dictionaries, or Jed standard files directly in your browser.