Array to JSON Converter
Convert PHP or JavaScript arrays to valid formatted JSON.
Open Tool →Format JSON, test regex, decode JWTs, convert cURL, build SQL and generate WordPress code. All 83 tools are free, work on any device and need no account.
Every tool has its own page. Pick a category or use the search box.
Format, validate and convert JSON, CSV, XML, YAML, SQL and PHP arrays.
Convert PHP or JavaScript arrays to valid formatted JSON.
Open Tool →Validate and beautify JSON with readable indentation.
Open Tool →Remove unnecessary whitespace from valid JSON.
Open Tool →Convert JSON objects and arrays into PHP short-array syntax.
Open Tool →Convert PHP indexed, associative and nested arrays to JSON.
Open Tool →Convert an array of JSON objects into CSV.
Open Tool →Convert CSV rows into a JSON array of objects.
Open Tool →Convert XML elements and attributes into JSON.
Open Tool →Convert valid JSON into structured XML.
Open Tool →Convert simple key: value YAML into JSON.
Open Tool →Convert valid JSON to readable YAML.
Open Tool →Convert SQL INSERT values into JSON rows.
Open Tool →Beautify or minify HTML, CSS, JavaScript, PHP and SQL, compare code and strip comments.
Indent and format HTML so nested tags are easy to read.
Open Tool →Format CSS rules for readability.
Open Tool →Indent JavaScript and put each statement on its own line.
Open Tool →Indent PHP code and put each statement on its own line.
Open Tool →Put SQL clauses on separate lines with uppercase keywords.
Open Tool →Remove comments and unnecessary whitespace from HTML.
Open Tool →Minify CSS by removing comments and whitespace.
Open Tool →Remove comments and unnecessary whitespace from JavaScript.
Open Tool →Compare two text blocks and see added and removed lines.
Open Tool →Remove comments from JavaScript, PHP, CSS, HTML, SQL and more.
Open Tool →Base64, URL, HTML entities, Unicode, JWT, hex and binary converters.
Encode text to Base64 or decode Base64 to text.
Open Tool →Encode or decode URL components and query strings.
Open Tool →Escape HTML special characters or decode HTML entities.
Open Tool →Convert text to \uXXXX escapes or decode them back.
Open Tool →Decode a JWT header and payload without verifying it.
Open Tool →Convert hexadecimal bytes to text, or text to hex.
Open Tool →Convert text to 8-bit binary bytes.
Open Tool →Convert binary bytes back into text.
Open Tool →UUIDs, passwords, hashes, QR codes, CSS code, robots.txt, sitemaps, .htaccess and cron.
Generate random UUID v4 values.
Open Tool →Generate a secure random API key locally.
Open Tool →Generate a strong random password.
Open Tool →Generate SHA-256, SHA-384 or SHA-512 hashes.
Open Tool →Generate an MD5 digest for compatibility use.
Open Tool →Generate a SHA-256 cryptographic digest.
Open Tool →Generate a QR code for text or URLs.
Open Tool →Generate placeholder paragraphs.
Open Tool →Generate fictional JSON test records.
Open Tool →Generate a random colour in HEX, RGB and HSL.
Open Tool →Generate a CSS linear-gradient background.
Open Tool →Generate CSS box-shadow code.
Open Tool →Generate CSS border-radius code.
Open Tool →Generate SEO and Open Graph meta tags.
Open Tool →Generate a basic robots.txt file.
Open Tool →Generate XML sitemap markup from a list of URLs.
Open Tool →Generate HTTPS and www redirect rules for Apache.
Open Tool →Build and explain common cron schedules.
Open Tool →Regex, HTTP checks, timestamps, colour converters, CSS units and snippet previews.
Preview HTML safely inside a sandboxed frame.
Open Tool →Test a regular expression and list matches.
Open Tool →Check the final HTTP status of a public URL.
Open Tool →Inspect response headers returned by a public URL.
Open Tool →Identify browser, operating system, device and bots.
Open Tool →Convert Unix timestamps and human-readable dates.
Open Tool →Convert between epoch time and local or UTC dates.
Open Tool →Preview a URL at common screen dimensions.
Open Tool →Preview how a title, description and image may look when shared.
Open Tool →Preview a Google-style title, URL and description snippet.
Open Tool →Convert px, rem and em using a chosen base size.
Open Tool →Convert pixels to rem values.
Open Tool →Convert HEX colours to RGB and HSL.
Open Tool →Convert RGB channel values to a HEX colour.
Open Tool →Convert HEX colours into HSL.
Open Tool →Shortcodes, post types, taxonomies, wp-config, PHP serialize, SQL builders and connection strings.
Generate secure WordPress shortcode starter code.
Open Tool →Generate custom post type registration code.
Open Tool →Generate custom taxonomy registration code.
Open Tool →Generate selected secure wp-config.php constants.
Open Tool →Generate safe WordPress password-update PHP code.
Open Tool →Serialize JSON-like values or decode serialized PHP data.
Open Tool →Check PHP for unbalanced brackets and quotes without running it.
Open Tool →Generate a parameterized SELECT query template.
Open Tool →Generate an escaped SQL INSERT statement from JSON.
Open Tool →Generate PDO, MySQLi and WordPress connection templates.
Open Tool →cURL converters, request builder, GraphQL, JSON Schema, mock data and API response viewers.
Send a safe GET request to a public API and inspect the response.
Open Tool →Generate fictional JSON records for development.
Open Tool →Format and inspect a pasted webhook JSON payload.
Open Tool →Generate a cURL command from a method, URL, headers and body.
Open Tool →Convert a common cURL command into Fetch API code.
Open Tool →Convert a common cURL command to PHP cURL code.
Open Tool →Fetch and format a public JSON API response.
Open Tool →Format a GraphQL query with indented selections.
Open Tool →Generate Fetch, cURL and PHP request examples.
Open Tool →Infer a basic JSON Schema from sample JSON.
Open Tool →Developers spend a surprising amount of time on small jobs: reading a minified API response, checking a regular expression, converting a colour, or turning a cURL example into JavaScript. NHP Learning Developer Tools puts these jobs in one place, with a separate page and a clear explanation for each tool.
Most tools process your text in the browser, so snippets, tokens and data stay on your device. A few tools need a server to make a request on your behalf. They only fetch public web addresses, and each tool page says which kind it is.
Yes. All 83 tools are free to use with no account, no signup and no usage limit on the tools that run in your browser.
Most tools run entirely in your browser with JavaScript, so your code and text stay on your device. Only the four tools that check a public web address (HTTP Status Code Checker, HTTP Header Checker, REST API GET Tester and API Response Formatter) send that address to the NHP Learning server, which makes the request for you.
No. Open a tool, paste your input and click Run Tool. Everything works in a modern browser on desktop, tablet and phone.
Yes. The generated code, hashes, identifiers and formatted text are yours to use. Check generated security values such as passwords and API keys before using them in production.
Most developers start with the JSON Formatter & Validator, the Base64 Encoder & Decoder and the Regex Tester. Use the search box to find any tool by name or task.
NHP Learning has free tutorials and courses for PHP, JavaScript, SQL, WordPress and more. Browse them from the courses page.
Follow free tutorials and structured courses in PHP, JavaScript, SQL and WordPress on NHP Learning.